user.list.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {% extends "base.html" %}
  2. {% block title %}
  3. 用户列表
  4. {% endblock %}
  5. {% block content %}
  6. <div class="section section-breadcrumbs section-breadcrumbs-backend">
  7. <div class="container">
  8. <div class="row">
  9. <div class="col-md-12">
  10. <h1>用户列表</h1>
  11. </div>
  12. </div>
  13. </div>
  14. </div>
  15. <div class="btn-toolbar">
  16. <div class="btn-group">
  17. {% url "listuserurl" as thelistuserurl %}
  18. <a class="btn btn-default {%if request.path = thelistuserurl%} active {%endif%}" href={{ thelistuserurl }}><span class="glyphicon glyphicon-list"></span>用户列表</a>
  19. {% url "removesusersurl" as theremovesusersurl %}
  20. <a class="btn btn-default {%if request.path = theremovesusersurl%} active {%endif%}" href={{ theremovesusersurl }}><span class="glyphicon glyphicon-list"></span>批量删除</a>
  21. </div>
  22. </div>
  23. <hr/>
  24. {{FilterHTML|safe}}
  25. <table class="table table-hover table-striped table-bordered table-condensed">
  26. <tr>
  27. <th>账号</th>
  28. <th>姓名</th>
  29. <th>性别</th>
  30. <th>学号</th>
  31. <th>分组</th>
  32. <th>状态</th>
  33. <th>角色</th>
  34. <th>导入批号</th>
  35. <th>最后登录时间</th>
  36. <th>操作</th>
  37. </tr>
  38. {% for i in lPage %}
  39. <tr style="font-size: 13px;">
  40. <td>{{ i.username }}</td>
  41. <td>{{ i.nickname|default:"----" }}</td>
  42. <td>{{ i.sex|default:"----" }}</td>
  43. <td>{{ i.sid }}</td>
  44. <td>{{ i.classid }}</td>
  45. <td>
  46. {% if i.is_active %}
  47. <span class="label label-success">启用</span>
  48. {% else %}
  49. <span class="label label-default">禁用</span>
  50. {% endif %}
  51. </td>
  52. <td>{{ i.role|default:"----" }}</td>
  53. <td>{{ i.importid }}</td>
  54. <td>{{ i.last_login|date:"Y-m-d H:i:s" }}</td>
  55. <td class="host_buttom">
  56. <a class="btn btn-warning btn-xs" href={% url "edituserurl" i.id %} onclick="return confirm('是否确认编辑?')">编辑</a>
  57. <a class="btn btn-danger btn-xs" href={% url "deleteuserurl" i.id %} onclick="return confirm('是否确认删除?')">删除</a>
  58. </td>
  59. </tr>
  60. {% endfor %}
  61. </table>
  62. {% include "common/paginator.html" %}
  63. {% endblock %}