Ignore:
Timestamp:
01/06/23 15:26:00 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
9dcbf44
Parents:
f484b14
Message:

Added full functionality for adding review

Location:
src/main/resources/templates
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/repairsForUser.html

    rf484b14 rd4b888e  
    44  <thead>
    55  <tr>
     6    <th>Број на поправка</th>
    67    <th>Датум на нарачка</th>
    7     <th>Нарачан дел</th>
    88    <th>Број на нарачка</th>
    99    <th>Име на сервис</th>
     10    <th>Додај критика</th>
    1011  </tr>
    1112  </thead>
    1213  <tbody>
    1314  <tr th:each="repair : ${userRepairs}">
     15    <td th:text="${repair.getRepairid()}"></td>
    1416    <td th:text="${repair.getOrderdate}"></td>
    15     <td th:text="${repair.getPartname()}"></td>
    1617    <td th:text="${repair.getOrderid()}"></td>
    1718    <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>
    1829  </tr>
    1930  </tbody>
Note: See TracChangeset for help on using the changeset viewer.