2023-11-05 09:38:25 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns:th="http://www.thymeleaf.org"
|
|
|
|
xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
|
2023-11-13 20:09:39 +01:00
|
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
|
|
layout:decorate="~{layout.html(title='Bestellungen')}">
|
2023-11-05 09:38:25 +01:00
|
|
|
<body>
|
2023-11-15 17:27:04 +01:00
|
|
|
<div layout:fragment="content">
|
2023-11-13 20:09:39 +01:00
|
|
|
<div> <!--th:unless"${cart.empty}"-->
|
2023-11-15 17:27:04 +01:00
|
|
|
<table class="table">
|
2023-11-13 20:09:39 +01:00
|
|
|
<tr>
|
2023-11-15 17:27:04 +01:00
|
|
|
<th>Von</th>
|
|
|
|
<th>Bis</th>
|
|
|
|
<th>Kunde</th>
|
|
|
|
<th>Produktdetails</th>
|
|
|
|
<th>Rechnung</th>
|
2023-11-19 13:00:21 +01:00
|
|
|
<th>Status</th>
|
2023-11-13 20:09:39 +01:00
|
|
|
<th>Preis</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
<tr th:each="order : ${orders}">
|
|
|
|
<td th:text="${order.getFormattedStart()}">
|
|
|
|
<td th:text="${order.getFormattedFinish()}">
|
|
|
|
<td th:text="BeispielKunde"/>
|
|
|
|
<td>
|
|
|
|
<div>
|
|
|
|
<a href="#productDetails" th:text="${order.getOrderType()}"/>
|
2023-11-19 13:00:21 +01:00
|
|
|
<ul th:each="chargeLine : ${order.getChargeLines()}">
|
|
|
|
<li th:text="${chargeLine}"/>
|
2023-11-13 20:09:39 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
2023-11-19 13:00:21 +01:00
|
|
|
<div th:if="${order.isInvoiceAvailable()}">
|
2023-11-13 20:09:39 +01:00
|
|
|
<a href="#invoice">Rechnung</a>
|
|
|
|
</div>
|
2023-11-19 13:00:21 +01:00
|
|
|
<div th:unless="${order.isInvoiceAvailable()}">
|
2023-11-13 20:09:39 +01:00
|
|
|
<span>Keine Rechnung verfügbar</span>
|
|
|
|
</div>
|
|
|
|
</td>
|
2023-11-19 13:00:21 +01:00
|
|
|
<td th:text="${order.getOrderStatus()}"></td> <!--von Admin bearbeitbar-->
|
2023-11-13 20:09:39 +01:00
|
|
|
<td>
|
2023-11-19 13:00:21 +01:00
|
|
|
<th:block th:text="${order.getTotal()}"/>
|
2023-11-13 20:09:39 +01:00
|
|
|
<th:block th:text="€"/>
|
|
|
|
</td>
|
2023-11-15 18:17:27 +01:00
|
|
|
<td sec:authorize="hasRole('ADMIN')">
|
2023-11-19 13:00:21 +01:00
|
|
|
<form method="post" th:action="@{/allOrders/remove}">
|
|
|
|
<input type="hidden" name="orderID" value="0" th:value="${order.getId()}"/> <!-- FIXME BROKEN -->
|
2023-11-15 17:27:04 +01:00
|
|
|
<input class="btn btn-danger" type="submit" value="remove" th:value="Entfernen"/>
|
2023-11-13 20:09:39 +01:00
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<span>
|
|
|
|
<th:block th:text="Insgesamt "/>
|
|
|
|
<th:block th:text="${total}"/>
|
|
|
|
<th:block th:text=" Aufträge"/>
|
|
|
|
</span>
|
2023-11-15 17:27:04 +01:00
|
|
|
</div>
|
2023-11-05 09:38:25 +01:00
|
|
|
</body>
|
|
|
|
</html>
|