swt23w23/src/main/resources/templates/orders.html

76 lines
2.1 KiB
HTML
Raw Normal View History

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"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
<meta charset="utf-8">
<link rel="stylesheet" th:href="@{/resources/css/style.css}">
<title th:text="Aufträge">Aufträge</title>
</head>
<body>
<div class="topnav"> <!-- später für css -->
<a th:href="@{/}" th:text="Home">Home</a>
<a th:href="@{/catalog}" th:text="Katalog">Katalog</a>
<a th:href="@{/orders}" th:text="Aufträge">Aufträge</a>
<!--<a href="#account">Mein Konto</a>-->
</div>
<div>
<h1>Auftragsliste</h1>
2023-11-05 09:38:25 +01:00
</div>
<div> <!--th:unless"${cart.empty}"-->
<table style="width:100%; text-align:left">
<tr>
<th>Von</th>
<th>Bis</th>
<th>Kunde</th>
<th>Produktdetails</th>
2023-11-05 09:38:25 +01:00
<th>Rechnung</th>
<th>Bezahlt</th>
<th>Preis</th>
<th></th>
</tr>
<tr th:each="order : ${orders}"> <!--später th:each="cart.products"-->
<td th:text="${order.getFormattedStart()}">
<td th:text="${order.getFormattedFinish()}">
<td th:text="BeispielKunde"/>
2023-11-05 09:38:25 +01:00
<td>
<a href="#productDetails" th:text="${order.getOrderType()}"/>
2023-11-05 09:38:25 +01:00
</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>
2023-11-05 09:38:25 +01:00
</td>
<td>&#9746</td> <!--von Admin bearbeitbar-->
<td>
<th:block th:text="${order.getTotalCost()}"/>
<th:block th:text="€"/>
2023-11-05 09:38:25 +01:00
</td>
<td> <!--th:if="product.isRemovable"-->
2023-11-05 09:38:25 +01:00
<button type="button">Entfernen</button>
</td>
</tr>
</table>
</div>
<span>
<th:block th:text="Insgesamt "/>
<th:block th:text="${total}"/>
<th:block th:text=" Aufträge"/>
</span>
2023-11-05 09:38:25 +01:00
</body>
<footer style="bottom: 0; position: absolute;">
<p>© Hannes Wurst @ Mampf GmbH</p>
<p>
2023-11-05 09:38:25 +01:00
<a href="mailto:catering@mampf.com">catering@mampf.com</a>
</p>
</footer>
</html>