template_list.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE HTML>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{admin/common/common}">
  5. <head>
  6. <title>模板管理列表</title>
  7. </head>
  8. <body layout:fragment="content">
  9. <nav class="breadcrumb">
  10. <i class="Hui-iconfont">&#xe67f;</i>
  11. 首页
  12. <span class="c-gray en">&gt;</span>模板管理
  13. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
  14. <i class="Hui-iconfont">&#xe68f;</i>
  15. </a>
  16. </nav>
  17. <form id="myForm" th:action="@{/super/templateList}" th:method="get">
  18. <div class="page-container">
  19. <!-- <div class="text-c">
  20. <input type="text" class="input-text" style="width:250px" placeholder="请输入关键字搜索" name="keyword" th:value="${keyword}"/>
  21. <button type="submit" class="btn btn-primary">
  22. 搜索
  23. </button>
  24. </div> -->
  25. <div class="cl pd-5 bg-1 bk-gray mt-20">
  26. <span class="l">
  27. <a href="javascript:;" th:onclick="'javascript:template_add(\'新增模板\',\'/super/template/add/0/0\',\'800\',\'500\');'" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i>新增</a>
  28. </span>
  29. <span class="r">共有数据:<strong th:text="${pageInfo?.total}" id="total">54</strong> 条</span>
  30. </div>
  31. <table class="table table-border table-bordered table-bg table-hover">
  32. <thead>
  33. <tr class="text-c">
  34. <th>编号</th>
  35. <th>模板类别</th>
  36. <th>模板类型</th>
  37. <th>模板名称</th>
  38. <th>模板文件</th>
  39. <th>有效标记</th>
  40. <th width="100">操作</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr class="text-c" th:each="model,iterStat:${pageInfo.list}" th:object="${model}">
  45. <td><input type="hidden" th:id="*{id}" value="" name=""/><span th:text="${iterStat.index+1}" ></span></td>
  46. <td th:text="*{type_name}"></td>
  47. <td th:text="*{item_name}"></td>
  48. <td th:text="*{name}"></td>
  49. <td>
  50. <th:block th:unless="${model.fileDown} == null">
  51. <th:block th:unless="${model.fileDown.file_url} == null">
  52. <a th:href="${fileUrl} + ${model.fileDown.file_url}" target="_blank">[[${model.fileDown.file_name}]]</a>
  53. </th:block>
  54. </th:block>
  55. </td>
  56. <td class="td-status">
  57. <span class="label radius" th:if="*{is_active==false}">否</span>
  58. <span class="label radius label-success" th:unless="*{is_active==false}">是</span>
  59. </td>
  60. <td class="td-manage">
  61. <a title="修改" href="javascript:;" th:onclick="'javascript:template_edit(\'修改模板\',\'/super/template/edit/'+*{id}+'\',\'800\',\'500\');'" class="ml-5" style="text-decoration:none">修改</a>
  62. <a title="废弃" href="javascript:;" th:onclick="'javascript:template_del(\'/super/template/delete/'+*{id}+'\');'" class="ml-5" style="text-decoration:none">废弃</a>
  63. </td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. <div th:replace="admin/common/page :: page"></div>
  68. </div>
  69. </form>
  70. <script type="text/javascript" th:src="@{/js/common/page.js}"></script>
  71. <script type="text/javascript" th:src="@{/js/super/template/template_list.js}"></script>
  72. <script th:inline="javascript">
  73. </script>
  74. </body>
  75. </html>