sysconf.category.list.html 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% extends "base-with-sidebar.html" %}
  2. {% load authperm %}
  3. {% load staticres %}
  4. {% block title %}
  5. 分类管理 - 丘丘塔台
  6. {% endblock %}
  7. {% block sidebar %}
  8. {% include "home/sysconf.sidebar.html" %}
  9. {% endblock %}
  10. {% block content %}
  11. <div class="btn-toolbar">
  12. <div class="btn-group">
  13. {% url "pichublog_catlist" as pichublog_catlist %}
  14. <a class="btn btn-primary {%if request.path = pichublog_catlist %} active {% endif %}" href="{{ pichublog_catlist }}">
  15. <span class="glyphicon glyphicon-th-list"></span>
  16. 分类列表
  17. </a>
  18. {% url "pichublog_catadd" as pichublog_catadd %}
  19. <a class="btn btn-primary {%if request.path = pichublog_catadd %} active {% endif %}" href="{{ pichublog_catadd }}">
  20. <span class="glyphicon glyphicon-plus"></span>
  21. 新建分类
  22. </a>
  23. </div>
  24. </div>
  25. <br />
  26. <table class="table table-hover">
  27. <thead>
  28. <tr>
  29. <td>#</td>
  30. <td>英文名</td>
  31. <td>分类名</td>
  32. <td>操作</td>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. {% for i in cto %}
  37. <tr>
  38. <td>{{i.id}}</td>
  39. <td>{{i.engname}}</td>
  40. <td>{{i.title}}</td>
  41. <td>
  42. <td class="host_buttom">
  43. <a class="btn btn-warning btn-xs" href="{% url 'pichublog_catedit' i.id %}">编辑</a>
  44. <a class="btn btn-danger btn-xs" href="{% url 'pichublog_catdel' i.id %}" onclick="return confirm('是否确认删除?')">删除</a>
  45. </td>
  46. </td>
  47. </tr>
  48. {% endfor %}
  49. </tbody>
  50. </table>
  51. {% endblock %}