group.list.html.bak 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {% extends "base.html" %}
  2. {% block title %}
  3. group List
  4. {% endblock %}
  5. {% block content %}
  6. <div class="btn-toolbar">
  7. <div class="btn-group">
  8. {% url "adduserurl" as theadduserurl %}
  9. <a class="btn btn-default {%if request.path = theadduserurl%} active {%endif%}" href={{ theadduserurl }}><span class="glyphicon glyphicon-edit"></span>新建用户</a>
  10. {% url "listuserurl" as thelistuserurl %}
  11. <a class="btn btn-default {%if request.path = thelistuserurl%} active {%endif%}" href={{ thelistuserurl }}><span class="glyphicon glyphicon-list"></span>用户列表</a>
  12. {% url "addxlsuserurl" as theaddxlsuserurl %}
  13. <a class="btn btn-default {%if request.path = theaddxlsuserurl%} active {%endif%}" href={{ theaddxlsuserurl }}><span class="glyphicon glyphicon-list"></span>批量导入</a>
  14. {% url "removegroupsurl" as theremovegroupsurl %}
  15. <a class="btn btn-default {%if request.path = theremovegroupsurl%} active {%endif%}" href={{ theremovegroupsurl }}><span class="glyphicon glyphicon-list"></span>批量删除</a>
  16. </div>
  17. </div>
  18. <hr/>
  19. <table class="table table-hover table-striped table-bordered table-condensed">
  20. <tr>
  21. <th>分组ID</th>
  22. <th>分组名称</th>
  23. <th>操作</th>
  24. </tr>
  25. {% for i in lPage %}
  26. <tr style="font-size: 13px;">
  27. <td>{{ i.classid }} </td>
  28. <td>{{ i.name }} </td>
  29. <td>
  30. <a href={% url "editgroupurl" i.id %} onclick="return confirm('确认编辑分组吗??')"><span class="glyphicon glyphicon-edit btn-xs"></span></a>
  31. <a href={% url "deletegroupurl" i.id %} onclick="return confirm('确认删除分组吗??')"><span class="glyphicon glyphicon-trash btn-xs"></span></a>
  32. </td>
  33. </tr>
  34. {% endfor %}
  35. </table>
  36. {% include "common/paginator.html" %}
  37. {% endblock %}