main
Last change
on this file since ae042f4 was 6832924, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago |
Moved products page and added services page
|
-
Property mode
set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | <div>
|
---|
2 | <header>
|
---|
3 | <a th:href="${'/orders/4'}">Мои нарачки</a>
|
---|
4 | <a th:href="${'/repairs/4'}">Мои поправки</a>
|
---|
5 | <a th:href="${'/reviews/4'}">Мои критики</a>
|
---|
6 | </header>
|
---|
7 | <main>
|
---|
8 | <h1>Сите производи</h1>
|
---|
9 | <form th:action="@{/filtered}">
|
---|
10 | <label for="cartype"></label><select id="cartype" required name="cartype">
|
---|
11 | <option th:each="car : ${cars}"
|
---|
12 | th:text="${car.getCartype()}"
|
---|
13 | th:value="${car.getCartype()}">
|
---|
14 | </option>
|
---|
15 | </select>
|
---|
16 | <label for="category"></label><select id="category" required name="category">
|
---|
17 | <option th:each="cat : ${categories}"
|
---|
18 | th:text="${cat.getCname()}"
|
---|
19 | th:value="${cat.getCname()}">
|
---|
20 | </option>
|
---|
21 | </select>
|
---|
22 | <button type="submit">Филтрирај</button>
|
---|
23 | </form>
|
---|
24 | <table>
|
---|
25 | <thead>
|
---|
26 | <tr>
|
---|
27 | <th>Name</th>
|
---|
28 | <th>Manufacturer</th>
|
---|
29 | <th>Details</th>
|
---|
30 | </tr>
|
---|
31 | </thead>
|
---|
32 | <tbody>
|
---|
33 | <tr th:each="part : ${parts}">
|
---|
34 | <td th:text="${part.getName()}"></td>
|
---|
35 | <td th:text="${part.getManufacturer().getName()}"></td>
|
---|
36 | <td>
|
---|
37 | <form th:action="@{'/part/{id}' (id=${part.getId()}) }">
|
---|
38 | <button type="submit">Детали</button>
|
---|
39 | </form>
|
---|
40 | </td>
|
---|
41 | </tr>
|
---|
42 | </tbody>
|
---|
43 | </table>
|
---|
44 | </main>
|
---|
45 | </div> |
---|
Note:
See
TracBrowser
for help on using the repository browser.