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

91 lines
2.2 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="Katalog">Katalog</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="@{/event}" th:text="Eventplaner">Eventplaner</a>
2023-11-05 09:38:25 +01:00
<a th:href="@{/orders}" th:text="Aufträge">Aufträge</a>
<!--<a href="#account">Mein Konto</a>-->
</div>
<div>
<h1>Katalog</h1>
2023-11-05 09:38:25 +01:00
</div>
<div>
<table style="width: 100%;">
<tr style="text-align: left;">
<th></th>
<th>Name</th>
<th>Mindestzeitraum</th>
<th>Basisausstattung</th>
<th>Preis ab</th>
</tr>
<tr th:each="catalogEntry : ${catalogEntries}">
2023-11-05 09:38:25 +01:00
<td>
**BILD**
</td>
<td th:text="${catalogEntry.getEventType()}">
<td th:text="${catalogEntry.getMinimumTimePeriod()}">h
2023-11-05 09:38:25 +01:00
<td>
<ul th:each="product : ${catalogEntry.getProducts()}">
<li th:text="${product}"/>
2023-11-05 09:38:25 +01:00
</ul>
</td>
<td th:text="${catalogEntry.getTotalCost()}">
<td>
<form method="post" th:action="@{/catalog/remove}">
<input type="hidden" name="catalogEntryID" th:value="${catalogEntry.getId()}">
<button type="submit">Entfernen</button>
</form>
</td>
2023-11-05 09:38:25 +01:00
</tr>
</table>
</div>
<div>
<form th:action="@{/catalog_editor}">
<button type="submit">Hinzufügen</button>
</form>
</div>
<div>
<form th:action="@{/catalog_editor}">
<button type="submit">Hinzufügen</button>
</form>
</div>
<div>
<form th:action="@{/catalog_editor}">
<button type="submit">Hinzufügen</button>
</form>
</div>
<div>
<form th:action="@{/catalog_editor}">
<button type="submit">Hinzufügen</button>
</form>
</div>
2023-11-05 09:38:25 +01:00
<div>
<button type="button">Hinzufügen</button>
</div>
</body>
<footer style="bottom: 0; position: absolute;">
<p>© Hannes Wurst @ Mampf GmbH</p>
<p>
<a href="mailto:catering@mampf.com">catering@mampf.com</a>
</p>
</footer>
</html>