Changeset 60de3eb for src/main/resources/templates/homepage.html
- Timestamp:
- 01/03/23 23:03:00 (23 months ago)
- Branches:
- main
- Children:
- 6832924
- Parents:
- feffc2f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/homepage.html
rfeffc2f r60de3eb 1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" 2 lang="en"> 3 <head> 4 <meta charset="utf-8"/> 5 <title>Почетна</title> 6 </head> 7 <body> 1 <div> 8 2 <header> 9 3 <a th:href="${'/orders/4'}">Мои нарачки</a> … … 13 7 <main> 14 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> 15 24 <table> 16 25 <thead> 17 26 <tr> 18 27 <th>Name</th> 19 <th>Description</th>20 28 <th>Manufacturer</th> 21 29 <th>Details</th> … … 25 33 <tr th:each="part : ${parts}"> 26 34 <td th:text="${part.getName()}"></td> 27 <td th:text="${part.getDescription()}"></td>28 35 <td th:text="${part.getManufacturer().getName()}"></td> 29 36 <td> … … 36 43 </table> 37 44 </main> 38 </body> 39 </html> 45 </div>
Note:
See TracChangeset
for help on using the changeset viewer.