aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates/storageSlots.html
blob: 6b75d39582b2eb96d34e5b348e467de08165662d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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="newStorageSlotBtn" 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>