Initial commit for prototype

This commit is contained in:
Mathis Kral 2023-11-05 09:38:25 +01:00 committed by Simon Bruder
parent de9c20fd09
commit 5f04f2e1b8
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
4 changed files with 180 additions and 0 deletions

View file

@ -25,4 +25,14 @@ public class WelcomeController {
public String index() {
return "welcome";
}
@GetMapping("/catalog")
public String catalog() {
return "catalog";
}
@GetMapping("/orders")
public String orders() {
return "orders";
}
}

View file

@ -0,0 +1,77 @@
<!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="@{/orders}" th:text="Aufträge">Aufträge</a>
<!--<a href="#account">Mein Konto</a>-->
</div>
<div>
<h1>Katalog</h1>
</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>
<td>
**BILD**
</td>
<td>Rent-a-Cook</td>
<td>3h</td>
<td>
<ul>
<li>1 Koch</li>
<li>300kg Mettbrötchen</li>
<li>300kg vegane Weißwurst</li>
</ul>
</td>
<td>499,99€</td>
</tr>
<tr>
<td>
**BILD**
</td>
<td>Sushi-Abend</td>
<td>4h</td>
<td>
<ul>
<li>2 Köche</li>
<li>300kg Sushi</li>
<li>300kg Sushi vegan</li>
</ul>
</td>
<td>699,99€</td>
</tr>
</table>
</div>
<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>

View file

@ -0,0 +1,78 @@
<!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>
</div>
<div> <!--th:unless"${cart.empty}"-->
<h2>Zukünftige Aufträge</h2>
<table style="width:100%; text-align:left">
<tr>
<th>Von</th>
<th>Bis</th>
<th>Kunde</th>
<th>Produkt</th>
<th>Rechnung</th>
<th>Bezahlt</th>
<th>Preis</th>
<th></th>
</tr>
<tr> <!--später th:each="cart.products"-->
<td>01.10.2024 0:00Uhr</td>
<td>30.10.2023 23:59Uhr</td>
<td>Hans Käse</td>
<td>
<a href="#productDetails">Mobile Breakfast</a>
</td>
<td>
noch keine Rechnung verfügbar <!--th:if="product.hasBill"-->
</td>
<td>&#9746</td> <!--von Admin bearbeitbar-->
<td>10550,99€</td>
<td> <!--th:if="product.isRemovable"-->
<button type="button">Entfernen</button>
</td>
</tr>
<tr>
<td>24.11.2023 10:00Uhr</td>
<td>24.11.2023 15:00Uhr</td>
<td>Hans Käse</td>
<td>
<a href="#productDetails">Rent-a-Cook</a>
</td>
<td>
<a href="#bill">Rechnung</a> <!--th:if="product.hasBill"-->
</td>
<td>&#9745</td>
<td>350,99</td>
<td> <!--th:if="product.isRemovable"-->
<button type="button">Entfernen</button>
</td>
</tr>
</table>
</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>

View file

@ -6,7 +6,22 @@
<title th:text="#{welcome.title}">Welcome!</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>
<h1 th:text="#{welcome.title}">Welcome!</h1>
<p th:text="#{welcome.text}"></p>
</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>