source: src/main/resources/templates/filteredParts.html@ 37966cf

main
Last change on this file since 37966cf was 37966cf, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 18 months ago

Filtered parts fixed

  • Property mode set to 100644
File size: 1.7 KB
Line 
1<div>
2<h1 class="mt-3 mb-3">Резултат од филтерот</h1>
3<a th:href="${'/products'}">Врати се на сите производи</a>
4<form th:action="@{/filtered}">
5 <label for="cartype"></label><select id="cartype" class="form-control w-25 d-inline mr-3" required name="cartype">
6 <option value="" disabled selected th:text="${selectedCar}"></option>
7 <option th:each="car : ${cars}"
8 th:text="${car.getCartype()}"
9 th:value="${car.getCartype()}">
10 </option>
11</select>
12 <label for="category"></label><select id="category" class="form-control w-25 d-inline mr-3" required name="category">
13 <option value="" disabled selected th:text="${selectedCategory}"></option>
14 <option th:each="cat : ${categories}"
15 th:text="${cat.getCname()}"
16 th:value="${cat.getCname()}">
17 </option>
18</select>
19 <button class="btn btn-lg btn-block btn-primary w-25 d-inline" type="submit">Филтрирај</button>
20</form>
21 <h3 th:if="${hasError}" th:text="${error}"></h3>
22 <div th:if="${!hasError}">
23<table class="table table-bordered mt-3">
24 <thead class="thead-dark">
25 <tr>
26 <th scope="col">Име</th>
27 <th scope="col">Производител</th>
28 <th scope="col">Детали</th>
29 </tr>
30 </thead>
31 <tbody>
32 <tr th:each="f : ${filtered}">
33 <td th:text="${f.getPartname()}"></td>
34 <td th:text="${f.getPmname()}"></td>
35 <td>
36 <form th:action="@{'/part/{id}' (id=${f.getPartid()}) }">
37 <button class="btn btn-primary btn-block btn-lg w-50" type="submit">Детали</button>
38 </form>
39 </td>
40 </tr>
41 </tbody>
42</table>
43 </div>
44</div>
Note: See TracBrowser for help on using the repository browser.