Newer
Older
task-bldg / src / main / resources / templates / task_done.html
  1. <!DOCTYPE html>
  2. <html xmlns:th="http://www.thymeleaf.org"
  3. xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
  4. layout:decorate="~{layout/layout}">
  5. <head>
  6. <meta charset="UTF-8" th:remove="tag" />
  7. <meta name="viewport" content="width=device-width,initial-scale=1" />
  8. <link th:href="@{/webjars/bootstrap/css/bootstrap.min.css}" rel="stylesheet" />
  9. </head>
  10. <body>
  11.  
  12. <!-- サイドバーの表示 -->
  13. <div layout:fragment="sidebar" th:replace="~{fragments/sidebar :: sidebar}">
  14. </div>
  15.  
  16.  
  17. <!-- コンテンツの表示 -->
  18. <div layout:fragment="content">
  19. <main class="offcanvas-outside bg-light">
  20. <div class="container-fluid">
  21.  
  22. <!-- トグルボタン -->
  23. <div th:replace="~{fragments/sidebar :: toggler}">
  24. </div>
  25.  
  26. <div class="row">
  27. <div class="col">
  28.  
  29. <div class="card shadow">
  30. <div class="card-header">
  31. <h6 class="text-navy my-2" th:text="${command}"></h6>
  32. </div>
  33. <div class="card-body" th:object="${task}">
  34.  
  35. <table class="table table-bordered">
  36. <thead>
  37. <tr>
  38. <th>item</th>
  39. <th>value</th>
  40. <th>comment</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr>
  45. <td>currentId</td>
  46. <td th:text="*{currentId}"></td>
  47. <td></td>
  48. </tr>
  49. <tr>
  50. <td>preId</td>
  51. <td th:text="*{preId}"></td>
  52. <td></td>
  53. </tr>
  54. <tr>
  55. <td th:text="#{citycode}"></td>
  56. <td th:text="${citycode}"></td>
  57. <td th:text="${cityname}"></td>
  58. </tr>
  59. <tr>
  60. <td th:text="#{meshcode}"></td>
  61. <td th:text="*{meshcode}"></td>
  62. <td></td>
  63. </tr>
  64. <tr>
  65. <td th:text="#{editor}"></td>
  66. <td th:text="*{username}"></td>
  67. <td></td>
  68. </tr>
  69. <tr>
  70. <td th:text="#{validator}"></td>
  71. <td th:text="*{validator}"></td>
  72. <td></td>
  73. </tr>
  74. <tr>
  75. <td th:text="#{status}"></td>
  76. <td th:text="*{status}"></td>
  77. <td></td>
  78. </tr>
  79. <tr>
  80. <td th:text="#{operation}"></td>
  81. <td th:text="*{operation}"></td>
  82. <td></td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. <hr>
  87.  
  88. <form th:action="@{/task/process}" method="post" novalidate>
  89. <input type="hidden" id="task" th:value="${task}" />
  90. <input type="hidden" th:field="*{currentId}" th:value="*{currentId}" />
  91. <input type="hidden" th:field="*{preId}" th:value="*{preId}" />
  92. <input type="hidden" th:field="*{citycode}" th:value="*{citycode}" />
  93. <input type="hidden" th:field="*{meshcode}" th:value="*{meshcode}" />
  94. <input type="hidden" th:field="*{username}" th:value="*{username}" />
  95. <input type="hidden" th:field="*{validator}" th:value="*{validator}" />
  96. <input type="hidden" th:field="*{status}" th:value="*{status}" />
  97. <input type="hidden" th:field="*{operation}" th:value="*{operation}" />
  98. <div class="mb-3">
  99. <label for="username" class="form-label">
  100. <span class="badge bg-danger">必須</span>
  101. 変更セットNo
  102. </label>
  103. <input class="form-control" type="text" th:errorclass="is-invalid" th:field="*{changeSet}">
  104. <div class="invalid-feedback" th:errors="*{changeSet}">
  105. </div>
  106. </div>
  107.  
  108. <div class="mb-3">
  109. <label for="username" class="form-label">
  110. コメント
  111. </label>
  112. <input class="form-control" type="text" th:errorclass="is-invalid" th:field="*{comment}">
  113. <div class="invalid-feedback" th:errors="*{comment}">
  114. </div>
  115. </div>
  116.  
  117. <p th:text="${error}"></p>
  118. <p th:text="${message}"></p>
  119.  
  120. <a th:text="#{return}" th:href="@{/tasks?citycode={citycode}&meshcode={meshcode}(citycode=*{citycode},meshcode=*{meshcode})}" class="btn btn-navy">
  121. </a>
  122. <button class="btn btn-navy col-4">
  123. <i class="bi bi-pencil-square" th:text="${command}"></i>
  124. </button>
  125.  
  126. </form>
  127. </div>
  128. </div>
  129.  
  130. </div>
  131. </div>
  132. </div>
  133. </main>
  134. </div>
  135. </body>
  136. </html>