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.
58 lines
1.4 KiB
58 lines
1.4 KiB
{% extends 'base.html' %}
|
|
{% load static %}
|
|
|
|
{% block body %}
|
|
|
|
<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>
|
|
<th> </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in objects %}
|
|
|
|
<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 %}
|
|
|
|
{% if item.is_translator %}
|
|
<td>Да</td>
|
|
{% else %}
|
|
<td> </td>
|
|
{% endif %}
|
|
<td class="center sorting_1">
|
|
<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>
|
|
</td>
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
</div>
|
|
{# pagination #}
|
|
{% include 'admin/includes/admin_pagination.html' with page_obj=objects %}
|
|
|
|
</div>
|
|
|
|
|
|
{% endblock %} |