Changeset e272096 for src/main/resources/templates/listVozenja.html
- Timestamp:
- 02/18/24 22:01:54 (9 months ago)
- Branches:
- master
- Children:
- 4251327
- Parents:
- bde8b13
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/listVozenja.html
rbde8b13 re272096 6 6 </div> 7 7 </section> 8 9 <form method="get" action="/vozenje"> 10 <select name="status"> 11 <option th:each="status : ${vozStatus}" th:value="${status}" th:text="${status.name()}"></option> 12 </select> 13 14 <input type="submit" value="Search"> 15 </form> 8 16 9 17 <div class="container mb-4"> … … 33 41 34 42 <td class="text-right"> 35 <th:block sec:authorize="hasRole('ROLE_ADMIN')"> 36 <form th:action="@{'/products/delete/{id}' (id=${vozenje.vozenjeId})}" 37 th:method="DELETE"> 43 <th:block > 44 <form th:action="@{'/vozenje/{id}/end' (id=${vozenje.vozenjeId})}" 45 th:hidden="${vozenje.vozenjeStatus.name().equals('FINISHED')} ? 'true' : 'false'" 46 th:method="GET"> 38 47 <button type="submit" 39 48 class="btn btn-sm btn-danger delete-product"> 40 <i class="fas fa-trash-alt"></i> Delete49 <i class="fas fa-trash-alt"></i> End 41 50 </button> 42 51 </form> … … 44 53 </td> 45 54 <td> 46 <th:block sec:authorize="hasRole('ROLE_ADMIN')">47 <a th:href="@{'/products/edit-form/{id}' (id=${vozenje.vozenjeId})}" 48 class="btn btn-sm btn-info edit-product">49 <i class="fas fa-edit"></i> Edit 50 </a>51 </th:block>55 <!-- <th:block sec:authorize="hasRole('ROLE_ADMIN')">--> 56 <!-- <a th:href="@{'/products/edit-form/{id}' (id=${vozenje.vozenjeId})}"--> 57 <!-- class="btn btn-sm btn-info edit-product">--> 58 <!-- <i class="fas fa-edit"></i> Edit--> 59 <!-- </a>--> 60 <!-- </th:block>--> 52 61 </td> 53 62 <td> 54 <form th:action="@{'/vozenje/{vozenjeId}/end'(vozenjeId=${vozenje.vozenjeId})}" 55 th:method="GET"> 56 <button type="submit" class="btn btn-sm btn-success add-to-cart"> 57 <i class="fas fa-shopping-cart"></i> End vozenje 58 </button> 59 </form> 63 60 64 </td> 61 65 </tr>
Note:
See TracChangeset
for help on using the changeset viewer.