aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates/operationProductNew.html
blob: c5f68b7bd9653d3a77d78a3b67f15493fe034386 (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
83
84
85
<!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" th:action="'/operationProducts/' + ${operationId} + '/new/'">
        <table class="table">
            <thead class="theme-dark">
            <tr>
                <th colspan="6">Фильтры</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>Название</td>
                <td>
                    <input type="text" id="operationProductNameFilter" name="operationProductName" th:value="${operationProductNameFilter}">
                </td>
            </tr>
            <tr>
                <td>Высота</td>
                <td>
                    от <input type="text" id="operationProductHeightGreaterFilter" name="operationProductHeightGreater" th:value="${operationProductHeightGreaterFilter}">
                    до <input type="text" id="operationProductHeightLessFilter" name="operationProductHeightLess" th:value="${operationProductHeightLessFilter}">
                </td>
            </tr>
            <tr>
                <td>Ширина</td>
                <td>
                    от <input type="text" id="operationProductWidthGreaterFilter" name="operationProductWidthGreater" th:value="${operationProductWidthGreaterFilter}">
                    до <input type="text" id="operationProductWidthLessFilter" name="operationProductWidthLess" th:value="${operationProductWidthLessFilter}">
                </td>
            </tr>
            <tr>
                <td>Глубина</td>
                <td>
                    от <input type="text" id="operationProductDepthGreaterFilter" name="operationProductDepthGreater" th:value="${operationProductDepthGreaterFilter}">
                    до <input type="text" id="operationProductDepthLessFilter" name="operationProductDepthLess" th:value="${operationProductDepthLessFilter}">
                </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">Название</th>
            <th scope="col">Габариты (В*Ш*Г)</th>
            <th scope="col">Добавить</th>
        </tr>
        </thead>
        <tbody>
        <tr th:if="${products.isEmpty()}">
            <td colspan="6">Данному фильтру не удовлетворяет ни одного продукта.</td>
        </tr>
        <tr th:each="product : ${products}">
            <td>
                <a th:href="'/product?id=' + ${product.getId()}">
                    <span th:text="${product.getName()}"></span>
                </a>
            </td>
            <td>
                <span th:text="${product.getHeight()} + ' * ' + ${product.getWidth()} + ' * ' + ${product.getDepth()}"></span>
            </td>
            <td>
                <a th:href="'/operationProducts/' + ${operationId} + '/edit/?id=' + ${product.getId()}">
                    <span th:text="Добавить"></span>
                </a>
            </td>
        </tr>
        </tbody>
    </table>
</div>

<div th:replace="~{common :: site-footer}"></div>
<div th:replace="~{common :: site-script}"></div>
</body>
</html>