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-13 20:09:39 +01:00
|
|
|
<section layout:fragment="content">
|
|
|
|
<div> <!--th:unless"${cart.empty}"-->
|
|
|
|
<table style="width:100%; text-align:left">
|
|
|
|
<tr>
|
|
|
|
<th style="width:10%">Von</th>
|
|
|
|
<th style="width:10%">Bis</th>
|
|
|
|
<th style="width:15%">Kunde</th>
|
|
|
|
<th style="width:30%">Produktdetails</th>
|
|
|
|
<th style="width:10%">Rechnung</th>
|
|
|
|
<th>Bezahlt</th>
|
|
|
|
<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()}"/>
|
|
|
|
<ul th:each="product : ${order.getFormattedProducts()}">
|
|
|
|
<li th:text="${product}"/>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<div th:if="${order.invoiceAvailable()}">
|
|
|
|
<a href="#invoice">Rechnung</a>
|
|
|
|
</div>
|
|
|
|
<div th:unless="${order.invoiceAvailable()}">
|
|
|
|
<span>Keine Rechnung verfügbar</span>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>☒</td> <!--von Admin bearbeitbar-->
|
|
|
|
<td>
|
|
|
|
<th:block th:text="${order.getTotalCost()}"/>
|
|
|
|
<th:block th:text="€"/>
|
|
|
|
</td>
|
2023-11-15 18:17:27 +01:00
|
|
|
<td sec:authorize="hasRole('ADMIN')">
|
2023-11-13 20:09:39 +01:00
|
|
|
<form method="post" th:action="@{/orders/remove}">
|
|
|
|
<input type="hidden" name="orderID" value="0" th:value="${order.getId()}"/>
|
|
|
|
<input type="submit" value="remove" th:value="Entfernen"/>
|
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<span>
|
|
|
|
<th:block th:text="Insgesamt "/>
|
|
|
|
<th:block th:text="${total}"/>
|
|
|
|
<th:block th:text=" Aufträge"/>
|
|
|
|
</span>
|
|
|
|
</section>
|
2023-11-05 09:38:25 +01:00
|
|
|
</body>
|
|
|
|
</html>
|