2014-08-14 09:22:25 +00:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
|
|
<form method="post" action="">
|
|
|
|
{% if info %}
|
|
|
|
<p class="alert alert-success">
|
|
|
|
{{ info }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
<table class="table table-striped table-hover table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><input onclick="selectAll()" type="checkbox" name="select_all" style="select_all" id="select_all"/></th>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>用户名</th>
|
|
|
|
<th>姓名</th>
|
2014-09-18 06:39:00 +00:00
|
|
|
<th>属组</th>
|
|
|
|
<th>is_admin</th>
|
|
|
|
<th>is_superuser</th>
|
2014-08-14 09:22:25 +00:00
|
|
|
<th>Email</th>
|
|
|
|
<th>Key</th>
|
2014-09-28 03:57:20 +00:00
|
|
|
<th>修改</th>
|
2014-08-14 09:22:25 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for user in users %}
|
|
|
|
<tr>
|
|
|
|
<td><input type="checkbox" name="selected" value="{{ user.id }}"></td>
|
|
|
|
<td>{{ user.id }}</td>
|
|
|
|
<td>{{ user.username }}</td>
|
|
|
|
<td>{{ user.name }}</td>
|
2014-09-18 11:42:09 +00:00
|
|
|
<!--<td>{{ user.group }}</td>-->
|
|
|
|
<td>
|
2014-09-23 06:27:51 +00:00
|
|
|
{% for group in user.group.all %}
|
2014-09-18 11:42:09 +00:00
|
|
|
{{ group.name }}
|
2014-09-23 06:27:51 +00:00
|
|
|
{% endfor %}
|
2014-09-18 11:42:09 +00:00
|
|
|
</td>
|
|
|
|
<td>{{ user.is_admin }}</td>
|
|
|
|
<td>{{ user.is_superuser }}</td>
|
2014-08-14 09:22:25 +00:00
|
|
|
<td>{{ user.email }}</td>
|
2014-09-23 13:41:36 +00:00
|
|
|
<td><a href="/downKey/?username={{ user.username }}">下载</a></td>
|
2014-09-28 03:57:20 +00:00
|
|
|
<td><a href="/chgUser/?username={{ user.username }}">修改</a></td>
|
2014-08-14 09:22:25 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</form>
|
|
|
|
</table>
|
|
|
|
<button class="btn btn-primary">删除</button>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|