group.list.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 "addgroupurl" as theaddgroupurl %}
  18. <a class="btn btn-default {%if request.path = theaddgroupurl%} active {%endif%}" href={{ theaddgroupurl }}><span class="glyphicon glyphicon-edit"></span>新建分组</a>
  19. {% url "listgroupurl" as thelistgroupurl %}
  20. <a class="btn btn-default {%if request.path = thelistgroupurl%} active {%endif%}" href={{ thelistgroupurl }}><span class="glyphicon glyphicon-list"></span>分组列表</a>
  21. {% url "addxlsgroupurl" as theaddxlsgroupurl %}
  22. <a class="btn btn-default {%if request.path = theaddxlsgroupurl%} active {%endif%}" href={{ theaddxlsgroupurl }}><span class="glyphicon glyphicon-list"></span>批量导入</a>
  23. {% url "removegroupsurl" as theremovegroupsurl %}
  24. <a class="btn btn-default {%if request.path = theremovegroupsurl%} active {%endif%}" href={{ theremovegroupsurl }}><span class="glyphicon glyphicon-list"></span>批量删除</a>
  25. </div>
  26. </div>
  27. <hr/>
  28. <table class="table table-hover table-striped table-bordered table-condensed">
  29. <tr>
  30. <th>分组ID</th>
  31. <th>分组名称</th>
  32. <th>操作</th>
  33. </tr>
  34. {% for i in lPage %}
  35. <tr style="font-size: 13px;">
  36. <td>{{ i.classid }} </td>
  37. <td>{{ i.name }} </td>
  38. <td>
  39. <a href={% url "editgroupurl" i.id %} onclick="return confirm('确认编辑分组吗??')"><span class="glyphicon glyphicon-edit btn-xs"></span></a>
  40. <a href={% url "deletegroupurl" i.id %} onclick="return confirm('确认删除分组吗??')"><span class="glyphicon glyphicon-trash btn-xs"></span></a>
  41. </td>
  42. </tr>
  43. {% endfor %}
  44. </table>
  45. {% include "common/paginator.html" %}
  46. {% endblock %}