roleList.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org">
  3. <head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
  4. <style>
  5. a{
  6. color: #009688;
  7. }
  8. a:hover{
  9. color: #004a43;
  10. text-decoration: underline;
  11. }
  12. </style>
  13. </head>
  14. <body>
  15. <div class="timo-detail-page">
  16. <table class="layui-table">
  17. <thead>
  18. <tr>
  19. <th>角色</th>
  20. <th>角色名</th>
  21. <th>操作</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <tr th:each="item:${list}">
  26. <td>[[${item.title}]]</td>
  27. <td>[[${item.name}]]</td>
  28. <td><a th:href="@{/system/user/index(id=${item.id})}">查看</a></td>
  29. </tr>
  30. <tr th:if="${list.isEmpty()}">
  31. <td style="text-align: center" colspan="3">未有分配该资源的角色</td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. <script th:replace="/common/template :: script"></script>
  37. </body>
  38. </html>