source: src/main/resources/templates/products.html@ c79897f

main
Last change on this file since c79897f was cab5859, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago

Added all advanced reports, added bootstrap for every template

  • Property mode set to 100644
File size: 1.6 KB
Line 
1<div xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
2>
3<main>
4 <h1 class="mt-3 mb-3">Сите производи</h1>
5 <form th:action="@{/filtered}">
6 <label for="cartype"></label><select id="cartype" class="form-control w-25 d-inline mr-3" required name="cartype">
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 th:each="cat : ${categories}"
14 th:text="${cat.getCname()}"
15 th:value="${cat.getCname()}">
16 </option>
17 </select>
18 <button class="btn btn-lg btn-block btn-primary w-25 d-inline" type="submit">Филтрирај</button>
19 </form>
20 <table class="table table-bordered mt-4">
21 <thead class="thead-dark">
22 <tr>
23 <th scope="col">Име</th>
24 <th scope="col">Производител</th>
25 <th scope="col">Детали</th>
26 </tr>
27 </thead>
28 <tbody>
29 <tr th:each="part : ${parts}">
30 <td th:text="${part.getName()}"></td>
31 <td th:text="${part.getManufacturer().getName()}"></td>
32 <td>
33 <form th:action="@{'/part/{id}' (id=${part.getId()}) }">
34 <button class="btn btn-primary btn-block btn-lg w-50" type="submit">Детали</button>
35 </form>
36 </td>
37 </tr>
38 </tbody>
39 </table>
40</main>
41</div>
Note: See TracBrowser for help on using the repository browser.