contestant.list.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. </tr>
  34. {% for i in lPage %}
  35. <tr style="font-size: 13px;">
  36. <td>{{ i.user.username }}</td>
  37. <td>{{ i.user.nickname|default:"----" }}</td>
  38. <td>{{ i.user.sex|default:"----" }}</td>
  39. <td>{{ i.user.sid }}</td>
  40. <td>{{ i.user.classid }}</td>
  41. <td class="host_buttom">
  42. <a class="btn btn-danger btn-xs" href={% url "pwdel" i.id %} onclick="return confirm('是否确认删除?')">删除</a>
  43. </td>
  44. </tr>
  45. {% endfor %}
  46. </table>
  47. {% include "common/paginator.html" %}
  48. {% endblock %}