source: src/main/resources/templates/repairsForUser.html@ d4b888e

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

Added full functionality for adding review

  • Property mode set to 100644
File size: 928 bytes
Line 
1<div>
2<h1>Мои поправки</h1>
3<table>
4 <thead>
5 <tr>
6 <th>Број на поправка</th>
7 <th>Датум на нарачка</th>
8 <th>Број на нарачка</th>
9 <th>Име на сервис</th>
10 <th>Додај критика</th>
11 </tr>
12 </thead>
13 <tbody>
14 <tr th:each="repair : ${userRepairs}">
15 <td th:text="${repair.getRepairid()}"></td>
16 <td th:text="${repair.getOrderdate}"></td>
17 <td th:text="${repair.getOrderid()}"></td>
18 <td th:text="${repair.getRsname()}"></td>
19 <td>
20 <div th:if="${!hasReview.get(repair.getRepairid())}">
21 <form th:action="@{'/repairs/addReview/{id}' (id=${repair.getRepairid()}) }">
22 <button type="submit">Додај критика</button>
23 </form>
24 </div>
25 <div th:if="${hasReview.get(repair.getRepairid())}">
26 Веќе има критика
27 </div>
28 </td>
29 </tr>
30 </tbody>
31</table>
32</div>
Note: See TracBrowser for help on using the repository browser.