2015-03-02 08:52:07 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Users" %}{% endblock %}
|
|
|
|
{% block content %}
|
2015-03-05 09:55:15 +00:00
|
|
|
<!-- Page Heading -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
{% include 'create_user_block.html' %}
|
|
|
|
<h1 class="page-header">{% trans "Users" %}</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
2015-03-02 08:52:07 +00:00
|
|
|
|
2015-03-03 09:34:09 +00:00
|
|
|
{% include 'errors_block.html' %}
|
2015-03-02 08:52:07 +00:00
|
|
|
|
2015-03-10 14:24:10 +00:00
|
|
|
<div class="row">
|
|
|
|
{% for user in users %}
|
|
|
|
<div id="{{ user.username }}" class="col-xs-12 col-sm-4">
|
|
|
|
<div class="panel {% if user.is_active %}panel-success{% else %}panel-danger{% endif %} panel-data">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">
|
|
|
|
<a href="{% url 'user' user.id %}"><strong>{{ user.username }}</strong></a>
|
|
|
|
</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="col-xs-4 col-sm-4">
|
|
|
|
<p><strong>{% trans "Status:" %}</strong></p>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-4 col-sm-6">
|
|
|
|
{% if user.is_active %}
|
|
|
|
<p>{% trans "Active" %}</p>
|
|
|
|
{% else %}
|
|
|
|
<p>{% trans "Blocked" %}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-02 08:52:07 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-10 14:24:10 +00:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2015-03-02 08:52:07 +00:00
|
|
|
{% endblock %}
|