mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Initial commit for prototype
This commit is contained in:
parent
de9c20fd09
commit
5f04f2e1b8
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
77
src/main/resources/templates/catalog.html
Normal file
77
src/main/resources/templates/catalog.html
Normal 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>
|
||||
|
78
src/main/resources/templates/orders.html
Normal file
78
src/main/resources/templates/orders.html
Normal 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>☒</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>☑</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>
|
||||
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue