diff options
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/templates/storageSlotEdit.html | 39 | ||||
-rw-r--r-- | src/main/resources/templates/storageSlots.html | 82 |
2 files changed, 121 insertions, 0 deletions
diff --git a/src/main/resources/templates/storageSlotEdit.html b/src/main/resources/templates/storageSlotEdit.html new file mode 100644 index 0000000..720a20a --- /dev/null +++ b/src/main/resources/templates/storageSlotEdit.html @@ -0,0 +1,39 @@ +<!DOCTYPE HTML> +<html xmlns:th="http://www.thymeleaf.org" lang="en"> +<div th:replace="~{common :: head}"></div> + +<body> +<div th:replace="~{common :: page-header}"></div> + +<div class="indent"> + <div id="updateToggleSelector"> + <button id="updateBtn" class="btn btn-primary" onclick="toggleDisabled()">Изменить</button> <br><br> + </div> + + <form method="post" action="/storageSlot"> + <input disabled hidden id="storageSlotId" name="storageSlotId" th:value="${storageSlot.getId()}"> + + <label for="storageSlotLocation">Локация:</label> + <input disabled type="text" id="storageSlotLocation" name="storageSlotLocation" required th:value="${storageSlot.getLocation()}"><br><br> + + <label for="storageSlotHeight">Высота:</label> + <input disabled type="text" id="storageSlotHeight" name="storageSlotHeight" required th:value="${storageSlot.getHeight()}"><br><br> + + <label for="storageSlotWidth">Ширина:</label> + <input disabled type="text" id="storageSlotWidth" name="storageSlotWidth" required th:value="${storageSlot.getWidth()}"><br><br> + + <label for="storageSlotDepth">Глубина:</label> + <input disabled type="text" id="storageSlotDepth" name="storageSlotDepth" required th:value="${storageSlot.getDepth()}"><br><br> + + <input id="saveBtn" type="submit" value="Сохранить" class="btn btn-primary" hidden> + + </form> +</div> + + +<div th:replace="~{common :: site-footer}"></div> +<div th:replace="~{common :: site-script}"></div> +<div th:replace="~{common :: editFieldsToggle}"></div> + +</body> +</html>
\ No newline at end of file diff --git a/src/main/resources/templates/storageSlots.html b/src/main/resources/templates/storageSlots.html new file mode 100644 index 0000000..3f09ee6 --- /dev/null +++ b/src/main/resources/templates/storageSlots.html @@ -0,0 +1,82 @@ +<!DOCTYPE HTML> +<html xmlns:th="http://www.thymeleaf.org" lang="en"> +<div th:replace="~{common :: head}"></div> + +<body> +<div th:replace="~{common :: page-header}"></div> + +<div class="indent"> + <form method="get" action="/newStorageSlot"> + <button id="newOperationBtn" type="submit" class="btn btn-primary">Создать новую ячейку хранения</button> + </form> + <br> + + <form method="get" action="/storageSlots"> + <table class="table"> + <thead class="theme-dark"> + <tr> + <th colspan="6">Фильтры</th> + </tr> + </thead> + <tbody> + <tr> + <td>Высота</td> + <td> + от <input type="text" id="storageSlotHeightGreaterFilter" name="storageSlotHeightGreater" th:value="${storageSlotHeightGreaterFilter}"> + до <input type="text" id="storageSlotHeightLessFilter" name="storageSlotHeightLess" th:value="${storageSlotHeightLessFilter}"> + </td> + </tr> + <tr> + <td>Ширина</td> + <td> + от <input type="text" id="storageSlotWidthGreaterFilter" name="storageSlotWidthGreater" th:value="${storageSlotWidthGreaterFilter}"> + до <input type="text" id="storageSlotWidthLessFilter" name="storageSlotWidthLess" th:value="${storageSlotWidthLessFilter}"> + </td> + </tr> + <tr> + <td>Глубина</td> + <td> + от <input type="text" id="storageSlotDepthGreaterFilter" name="storageSlotDepthGreater" th:value="${storageSlotDepthGreaterFilter}"> + до <input type="text" id="storageSlotDepthLessFilter" name="storageSlotDepthLess" th:value="${storageSlotDepthLessFilter}"> + </td> + </tr> + <tr> + <td colspan="6"><input id="saveBtn" type="submit" value="Применить" class="btn btn-primary"></td> + </tr> + </tbody> + </table> + </form> + + <table class="table table-bordered table-warning"> + <thead class="thead-dark"> + <tr> + <th scope="col">ID</th> + <th scope="col">Локация</th> + <th scope="col">Габариты (В*Ш*Г)</th> + </tr> + </thead> + <tbody> + <tr th:if="${storageSlots.isEmpty()}"> + <td colspan="6">Данному фильтру не удовлетворяет ни одного места хранения.</td> + </tr> + <tr th:each="storageSlot : ${storageSlots}"> + <td> + <a th:href="'/storageSlot?id=' + ${storageSlot.getId()}"> + <span th:text="${storageSlot.getId()}"></span> + </a> + </td> + <td> + <span th:text="${storageSlot.getLocation()}"></span> + </td> + <td> + <span th:text="${storageSlot.getHeight()} + ' * ' + ${storageSlot.getWidth()} + ' * ' + ${storageSlot.getDepth()}"></span> + </td> + </tr> + </tbody> + </table> +</div> + +<div th:replace="~{common :: site-footer}"></div> +<div th:replace="~{common :: site-script}"></div> +</body> +</html>
\ No newline at end of file |