list.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <!--
  3. ~ Copyright (c) 2025 Andrew Grant of Carrick Software .
  4. ~ All rights reserved.
  5. -->
  6. <html lang="en" xmlns:th="http://www.thymeleaf.org">
  7. <head>
  8. <meta charset="UTF-8"/>
  9. <title>People </title>
  10. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
  11. integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
  12. </head>
  13. <body>
  14. <div th:insert="~{fragments/layout::banner}"></div>
  15. <div class="container text-center">
  16. <div class="container border border-info
  17. rounded-3 text-center p-4">
  18. <h3>Place Texts</h3>
  19. <table class="table table-striped table-bordered">
  20. <thead class="table-dark">
  21. <tr>
  22. <th>ID</th>
  23. <th>Place</th>
  24. <th></th>
  25. <th></th>
  26. </tr>
  27. </thead>
  28. <!--/*@thymesVar id="text" type="scot.carricksoftware.grants.domains.text.PlaceText"*/-->
  29. <!--/*@thymesVar id="place" type="scot.carricksoftware.grants.domains.places.Place"*/-->
  30. <tr th:each="text : ${place_texts}">
  31. <td th:text="${text.id}">123</td>
  32. <td th:text="${text.place.toString()}">123</td>
  33. <td></td>
  34. <td><span>
  35. <a th:action="delete" class="btn btn-danger btn-sm" href=""
  36. th:href="'personTexts/' + ${text.id} + '/delete'"
  37. th:text="Delete"></a>
  38. <a th:action="edit" class="btn btn-warning btn-sm"
  39. th:href="'personText/' + ${text.id} + '/edit'"
  40. th:text="Edit"></a>
  41. </span></td>
  42. </tr>
  43. <tfoot>
  44. <tr>
  45. <td colspan="4"><span>
  46. <a th:action="rewind" class="btn btn-secondary btn-sm" th:href="@{/personTexts/rewind}"
  47. th:text="'<<'"></a>
  48. <a th:action="back" class="btn btn-secondary btn-sm"
  49. th:href="@{/personTexts/prev}" th:text="'<'"></a>
  50. <a th:action="new" class="btn btn-primary btn-sm" th:href="@{/personText/new}"
  51. th:text="'New Document'"></a>
  52. <a th:action="home" class="btn btn-success btn-sm"
  53. th:href="@{/}" th:text="'Home'"></a>
  54. <a th:action="forward" class="btn btn-secondary btn-sm"
  55. th:href="@{/personTexts/next}" th:text="'>'"></a>
  56. <a th:action="end" class="btn btn-secondary btn-sm" th:href="@{/personTexts/ff}"
  57. th:text="'>>'"></a>
  58. </span></td>
  59. </tr>
  60. </tfoot>
  61. </table>
  62. </div>
  63. </div>
  64. </body>
  65. </html>