role.plist.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 "listrolepermission" 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 "listpermissionurl" 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 %}><span class="glyphicon glyphicon-edit btn-xs"></span>修改权限</a>
  34. </td>
  35. </tr>
  36. {% endfor %}
  37. </table>
  38. {% include "common/paginator.html" %}
  39. {% endblock %}