user.listnew.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. {{FilterHTML|safe}}
  16. <table class="table table-hover table-striped table-bordered table-condensed">
  17. <tr>
  18. <th>账号</th>
  19. <th>姓名</th>
  20. <th>性别</th>
  21. <th>学号</th>
  22. <th>分组</th>
  23. <th>状态</th>
  24. <th>角色</th>
  25. <th>操作</th>
  26. </tr>
  27. {% for i in lPage %}
  28. <tr style="font-size: 13px;">
  29. <td>{{ i.username }}</td>
  30. <td>{{ i.nickname|default:"----" }}</td>
  31. <td>{{ i.sex|default:"----" }}</td>
  32. <td>{{ i.sid }}</td>
  33. <td>{{ i.classid }}</td>
  34. <td>
  35. {% if i.is_active %}
  36. <span class="label label-success">启用</span>
  37. {% else %}
  38. <span class="label label-default">禁用</span>
  39. {% endif %}
  40. </td>
  41. <td>{{ i.role|default:"----" }}</td>
  42. <td class="host_buttom">
  43. <a class="btn btn-warning btn-xs" href={% url "edituserurl" i.id %} >审核</a>
  44. <a class="btn btn-danger btn-xs" href={% url "deleteuserurl" i.id %} onclick="return confirm('是否确认删除?')">删除</a>
  45. </td>
  46. </tr>
  47. {% endfor %}
  48. </table>
  49. {% include "common/paginator.html" %}
  50. {% endblock %}