role.list.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 "addroleurl" as theaddroleurl %}
  18. <a class="btn btn-default {%if request.path = theaddroleurl%} active {%endif%}" href={{ theaddroleurl }}><span class="glyphicon glyphicon-edit"></span>新建角色</a>
  19. {% url "listroleurl" as thelistroleurl %}
  20. <a class="btn btn-default {%if request.path = thelistroleurl%} active {%endif%}" href={{ thelistroleurl }}><span class="glyphicon glyphicon-list"></span>角色列表</a>
  21. </div>
  22. </div>
  23. <hr/>
  24. <table class="table table-hover table-striped table-bordered table-condensed">
  25. <tr>
  26. <th>角色名称</th>
  27. <th>操作</th>
  28. </tr>
  29. {% for i in lPage %}
  30. <tr style="font-size: 13px;">
  31. <td>{{ i.name }} </td>
  32. <td>
  33. <a href={% url "editroleurl" i.id %} onclick="return confirm('确认编辑角色吗??')"><span class="glyphicon glyphicon-edit btn-xs"></span></a>
  34. <a href={% url "deleteroleurl" i.id %} onclick="return confirm('确认删除角色吗??')"><span class="glyphicon glyphicon-trash btn-xs"></span></a>
  35. </td>
  36. </tr>
  37. {% endfor %}
  38. </table>
  39. {% include "common/paginator.html" %}
  40. {% endblock %}