123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- {% extends "base.html" %}
- {% block title %}
- 分组列表
- {% endblock %}
- {% block content %}
- <div class="section section-breadcrumbs section-breadcrumbs-backend">
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <h1>分组列表</h1>
- </div>
- </div>
- </div>
- </div>
- <div class="btn-toolbar">
- <div class="btn-group">
- {% url "addgroupurl" as theaddgroupurl %}
- <a class="btn btn-default {%if request.path = theaddgroupurl%} active {%endif%}" href={{ theaddgroupurl }}><span class="glyphicon glyphicon-edit"></span>新建分组</a>
- {% url "listgroupurl" as thelistgroupurl %}
- <a class="btn btn-default {%if request.path = thelistgroupurl%} active {%endif%}" href={{ thelistgroupurl }}><span class="glyphicon glyphicon-list"></span>分组列表</a>
- {% url "addxlsgroupurl" as theaddxlsgroupurl %}
- <a class="btn btn-default {%if request.path = theaddxlsgroupurl%} active {%endif%}" href={{ theaddxlsgroupurl }}><span class="glyphicon glyphicon-list"></span>批量导入</a>
- {% url "removegroupsurl" as theremovegroupsurl %}
- <a class="btn btn-default {%if request.path = theremovegroupsurl%} active {%endif%}" href={{ theremovegroupsurl }}><span class="glyphicon glyphicon-list"></span>批量删除</a>
- </div>
- </div>
- <hr/>
- <table class="table table-hover table-striped table-bordered table-condensed">
- <tr>
- <th>分组ID</th>
- <th>分组名称</th>
- <th>操作</th>
- </tr>
- {% for i in lPage %}
- <tr style="font-size: 13px;">
- <td>{{ i.classid }} </td>
- <td>{{ i.name }} </td>
- <td>
- <a href={% url "editgroupurl" i.id %} onclick="return confirm('确认编辑分组吗??')"><span class="glyphicon glyphicon-edit btn-xs"></span></a>
- <a href={% url "deletegroupurl" i.id %} onclick="return confirm('确认删除分组吗??')"><span class="glyphicon glyphicon-trash btn-xs"></span></a>
- </td>
- </tr>
- {% endfor %}
- </table>
- {% include "common/paginator.html" %}
- {% endblock %}
|