source: src/main/resources/templates/currentOrder.html@ 5e7345e

main
Last change on this file since 5e7345e was 89865ae, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 2 years ago

Added price and total price in currentOrder

  • Property mode set to 100644
File size: 1.2 KB
Line 
1<div>
2 <h1 th:if="${hasError}" th:text="${error}"></h1>
3 <div th:if="${!hasError}">
4 <h3 class="mt-3 mb-3">
5 Тековна нарачка за корисник : <span th:text="${order.getUser().getUsername()}"></span>
6 </h3>
7 <table class="table table-bordered">
8 <thead class="thead-dark">
9 <tr>
10 <th>Име</th>
11 <th>Производител</th>
12 <th>Количина</th>
13 <th>Вкупна цена</th>
14 </tr>
15 </thead>
16 <tbody>
17 <tr th:each="part : ${parts}">
18 <td th:text="${part.getPartName()}"></td>
19 <td th:text="${part.getManufacturerName()}"></td>
20 <td th:text="${part.getQuantity()}"></td>
21 <td th:text="${part.getPrice()}"></td>
22
23 </tr>
24 </tbody>
25 </table>
26 <h3>Вкупен износ : <span th:text="${total}"></span></h3>
27 <form th:action="@{'/part/delivery/'}">
28 <button class="btn btn-primary btn-block btn-lg" type="submit">Испрати нарачка</button>
29 </form>
30 </div>
31</div>
Note: See TracBrowser for help on using the repository browser.