index.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head th:replace="/common/template :: header(~{::title},~{::link},~{::style})"></head>
  4. <body class="timo-layout-page">
  5. <div class="layui-card">
  6. <div class="layui-card-header timo-card-header">
  7. <span><i class="fa fa-bars"></i> 编译配置</span>
  8. <i class="layui-icon layui-icon-refresh refresh-btn"></i>
  9. </div>
  10. <div class="layui-card-body">
  11. <div class="layui-row timo-card-screen put-row">
  12. <div class="pull-right screen-btn-group">
  13. <div class="btn-group-right">
  14. <button class="layui-btn open-popup" data-title="添加编译配置" th:attr="data-url=@{/app/config/build/compiler/add}"
  15. data-size="640,480">
  16. <i class="fa fa-plus"></i> 添加
  17. </button>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="timo-table-wrap">
  22. <table class="layui-table timo-table">
  23. <thead>
  24. <tr>
  25. <th class="sortable" data-field="type">编译类型</th>
  26. <th class="sortable" data-field="name">编译名字</th>
  27. <th class="sortable" data-field="homePath">编译器主目录</th>
  28. <th class="sortable" data-field="compileScript">编译脚本</th>
  29. <th>操作</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <tr th:each="item:${list}">
  34. <td th:text="${item.type}">编译类型</td>
  35. <td th:text="${item.name}">编译名字</td>
  36. <td th:text="${item.homePath}">编译器主目录</td>
  37. <td>
  38. <a class="open-popup" data-title="编译脚本" th:attr="data-url=@{'/app/config/build/compiler/detail/'+${item.id}}"
  39. data-size="640,480" href="#">查看</a>
  40. </td>
  41. <td>
  42. <a class="open-popup" data-title="编辑" th:attr="data-url=@{'/app/config/build/compiler/edit/'+${item.id}}"
  43. data-size="640,480" href="#">编辑</a>
  44. <a class="ajax-delete" th:attr="data-msg='确定要删除 '+ ${item.name} + '?'"
  45. th:href="@{'/api/app/config/build/compiler/' + ${item.id}}">删除</a>
  46. </td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. <div th:replace="/common/fragment :: page"></div>
  52. </div>
  53. </div>
  54. <script th:replace="/common/template :: script"></script>
  55. <script type="text/javascript">
  56. </script>
  57. </body>
  58. </html>