Ignore:
Timestamp:
01/06/23 21:29:06 (18 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
4d67d70
Parents:
cab5859
Message:

Added price and total price in currentOrder

File:
1 edited

Legend:

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

    rcab5859 r89865ae  
    33    <div th:if="${!hasError}">
    44        <h3 class="mt-3 mb-3">
    5             Нарачка за корисник : <span th:text="${order.getUser().getUsername()}"></span>
     5            Тековна нарачка за корисник : <span th:text="${order.getUser().getUsername()}"></span>
    66        </h3>
    77        <table class="table table-bordered">
    88            <thead class="thead-dark">
    99            <tr>
    10                 <th>Name</th>
    11                 <th>Manufacturer</th>
     10                <th>Име</th>
     11                <th>Производител</th>
     12                <th>Количина</th>
     13                <th>Вкупна цена</th>
    1214            </tr>
    1315            </thead>
    1416            <tbody>
    1517            <tr th:each="part : ${parts}">
    16                 <td th:text="${part.getName()}"></td>
    17                 <td th:text="${part.getManufacturer().getName()}"></td>
     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
    1823            </tr>
    1924            </tbody>
    2025        </table>
     26        <h3>Вкупен износ : <span th:text="${total}"></span></h3>
    2127        <form th:action="@{'/part/delivery/'}">
    2228            <button class="btn btn-primary btn-block btn-lg" type="submit">Испрати нарачка</button>
Note: See TracChangeset for help on using the changeset viewer.