source: src/main/resources/templates/homepage.html@ feffc2f

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

Added some views and functionalities

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[feffc2f]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>
8<header>
9 <a th:href="${'/orders/4'}">Мои нарачки</a>
10 <a th:href="${'/repairs/4'}">Мои поправки</a>
11 <a th:href="${'/reviews/4'}">Мои критики</a>
12</header>
13<main>
14 <h1>Сите производи</h1>
15 <table>
16 <thead>
17 <tr>
18 <th>Name</th>
19 <th>Description</th>
20 <th>Manufacturer</th>
21 <th>Details</th>
22 </tr>
23 </thead>
24 <tbody>
25 <tr th:each="part : ${parts}">
26 <td th:text="${part.getName()}"></td>
27 <td th:text="${part.getDescription()}"></td>
28 <td th:text="${part.getManufacturer().getName()}"></td>
29 <td>
30 <form th:action="@{'/part/{id}' (id=${part.getId()}) }">
31 <button type="submit">Детали</button>
32 </form>
33 </td>
34 </tr>
35 </tbody>
36 </table>
37</main>
38</body>
39</html>
Note: See TracBrowser for help on using the repository browser.