Newer
Older
task-bldg / src / main / resources / templates / task.html
@haya4 haya4 on 3 Aug 2022 4 KB i18n
  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">タスク登録</h6>
  32. </div>
  33. <div class="card-body">
  34. <form th:action="@{/task/process}" th:object="${task}" method="post" novalidate>
  35. <input type="hidden" id="task" th:value="${task}" />
  36. <div class="mb-3">
  37. <label for="currentId">currentId</label>
  38. <input type="text" class="form-control" th:field="*{currentId}" disabled>
  39. <input type="hidden" th:field="*{currentId}" th:value="*{currentId}" />
  40. </div>
  41.  
  42. <div class="mb-3">
  43. <label for="preId">preId</label>
  44. <input type="text" class="form-control" th:field="*{preId}" disabled>
  45. <input type="hidden" th:field="*{preId}" th:value="*{preId}" />
  46. </div>
  47.  
  48. <div class="mb-3">
  49. <label for="citycode" th:text="#{citycode}"></label>
  50. <input type="text" class="form-control" th:field="*{citycode}" disabled>
  51. <input type="hidden" th:field="*{citycode}" th:value="*{citycode}" />
  52. </div>
  53.  
  54. <div class="mb-3">
  55. <label for="meshcode" th:text="#{meshcode}"></label>
  56. <input type="text" class="form-control" th:field="*{meshcode}" disabled>
  57. <input type="hidden" th:field="*{meshcode}" th:value="*{meshcode}" />
  58. </div>
  59.  
  60. <div class="mb-3">
  61. <label for="folder" th:text="#{status}"></label>
  62. <input type="text" class="form-control" th:errorclass="is-invalid" th:field="*{status}" disabled>
  63. <input type="hidden" th:field="*{status}" th:value="*{status}" />
  64. <div class="invalid-feedback" th:errors="*{status}">
  65. </div>
  66. </div>
  67.  
  68. <div class="mb-3">
  69. <label for="username" th:text="#{username}"></label>
  70. <input type="text" class="form-control" th:errorclass="is-invalid" th:field="*{username}" readonly>
  71. <div class="invalid-feedback" th:errors="*{username}">
  72. </div>
  73. </div>
  74.  
  75. <div class="mb-3">
  76. <label for="operation" th:text="#{operation}"></label>
  77. <input type="text" class="form-control" th:errorclass="is-invalid" th:field="*{operation}" disabled>
  78. <input type="hidden" th:field="*{operation}" th:value="*{operation}" />
  79. <div class="invalid-feedback" th:errors="*{operation}">
  80. </div>
  81. </div>
  82.  
  83. <hr>
  84. <a th:text="#{return}" th:href="@{/tasks?citycode={citycode}&meshcode={meshcode}(citycode=*{citycode},meshcode=*{meshcode})}" class="btn btn-navy">
  85. </a>
  86. <button class="btn btn-navy col-4">
  87. <i class="bi bi-pencil-square" th:text="#{reserve}"></i>
  88. </button>
  89. </form>
  90. </div>
  91. </div>
  92.  
  93. </div>
  94. </div>
  95. </div>
  96. </main>
  97. </div>
  98. <script th:src="@{webjars/bootstrap/js/bootstrap.bundle.min.js}"></script>
  99. </body>
  100. </html>