a_knowledgenote_manage.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {% extends 'admin/a_admindefault.html' %}
  2. {% block middle %}
  3. <div class="content">
  4. <div class="page-inner">
  5. <div class="page-header">
  6. <h4 class="page-title">知识笔记管理</h4>
  7. </div>
  8. <div class="row">
  9. <div class="col-md-12">
  10. <div class="card">
  11. <div class="card-header">
  12. <div class="d-flex align-items-center">
  13. <a href="/newknowledgenote">
  14. <button class="btn btn-primary btn-round ml-auto">
  15. <i class="fa fa-plus"></i>添加新笔记
  16. </button>
  17. </a>
  18. {% with messages = get_flashed_messages() %}
  19. {% if messages %}
  20. {% for message in messages %}
  21. <p>{{ message }}</p>
  22. {% endfor %}
  23. {% endif %}
  24. {% endwith %}
  25. </div>
  26. </div>
  27. <div class="card-body">
  28. <div class="table-responsive">
  29. <table id="add-row" class="display table table-striped table-hover">
  30. <thead>
  31. <tr>
  32. <th style="width: 30px">序号</th>
  33. <th style="width: 150px">知识专题名称</th>
  34. <th style="width: 300px">笔记标题</th>
  35. <th style="width: 100px">作者</th>
  36. <th style="width: 80px">更新时间</th>
  37. <th style="width: 30px">状态</th>
  38. </tr>
  39. </thead>
  40. {% for row in results %}
  41. <tbody>
  42. <tr>
  43. <td>{{row[0]}}</td>
  44. <td>{{row[1]}}</td>
  45. <td>{{row[2]}}</td>
  46. <td>{{row[3]}}</td>
  47. <td>{{row[4]}}</td>
  48. <td>{{row[5]}}</td>
  49. <td>
  50. <div class="form-button-action">
  51. <button type="button" title="" class="btn btn-link btn-primary btn-lg">
  52. <i class="fa fa-search"></i>
  53. <a href="/viewknowledgenote/{{row[0]}}">查看</a>
  54. </button>
  55. <button type="submit" title="" class="btn btn-link btn-primary btn-lg">
  56. <i class="fa fa-edit"></i>
  57. <a href="/editknowledgenote/{{row[0]}}">编辑</a>
  58. </button>
  59. <form name="delknowledgenoteform" action="/delknowledgenote/{{row[0]}}"
  60. method="post">
  61. <a href="/delknowledgenote/{{row[0]}}">
  62. <button type="submit" data-toggle="tooltip" class="btn btn-link btn-primary btn-lg"
  63. onclick="{if(confirm('确定要删除该笔记吗?')){delteacherform.submit();return true;}return false;}" >
  64. 删除
  65. </button>
  66. </a>
  67. </form>
  68. </div>
  69. </td>
  70. </tr>
  71. {% endfor %}
  72. </tbody>
  73. </table>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. {% endblock %}