You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.5 KiB
80 lines
2.5 KiB
{% extends 'admin_list.html' %}
|
|
{% load template_filters %}
|
|
|
|
{% block body %}
|
|
|
|
<div class="box span8">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-arrow-down"></i>Фильтры</h2>
|
|
</div>
|
|
<div class="box-content">
|
|
<form>
|
|
{{ form }}
|
|
|
|
<button type="submit" class="btn">Найти</button>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="box span8">
|
|
<div class="box-header well">
|
|
<h2><i class="icon-arrow-down"></i>Список пользователей</h2>
|
|
</div>
|
|
<div class="box-content">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>id</th>
|
|
<th>Email</th>
|
|
<th>Полное имя</th>
|
|
<th>Админ</th>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
|
|
{% with request.GET.urlencode as request_get_params %}
|
|
<tbody>
|
|
{% for item in object_list %}
|
|
|
|
<tr>
|
|
<td>{{ item.id }}</td>
|
|
<td>{{ item.email }}</td>
|
|
<td>{{ item.get_full_name }}</td>
|
|
{% if item.is_admin %}
|
|
<td>Да</td>
|
|
{% else %}
|
|
<td> </td>
|
|
{% endif %}
|
|
<td> </td>
|
|
<td class="center sorting_1">
|
|
{% if item.blocked %}
|
|
<a class="btn btn-success" href="{% url 'admin_accounts_unblock' item.url_or_pk %}?{{ request_get_params }}" title="Разблокировать">
|
|
<i class="icon-check icon-white"></i>
|
|
</a>
|
|
{% elif not item.blocked %}
|
|
<a class="btn btn-inverse" href="{% url 'admin_accounts_block' item.url_or_pk %}?{{ request_get_params }}" title="Заблокировать">
|
|
<i class="icon-ban-circle icon-white"></i>
|
|
</a>
|
|
{% endif %}
|
|
|
|
<a class="btn btn-info" href="/admin/accounts/change/{% if item.url %}{{ item.url }}{% else %}{{ item.id }}{% endif %}">
|
|
<i class="icon-edit icon-white"></i> Изменить
|
|
</a>
|
|
<a class="btn btn-danger" href="{% url 'remove_account' item.id %}">
|
|
<i class="icon-trash icon-white"></i> Удалить
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
</tbody>
|
|
{% endwith %}
|
|
</table>
|
|
|
|
</div>
|
|
{# pagination #}
|
|
{% include 'c_admin/includes/admin_pagination.html' with page_obj=object_list %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|