Skip to content
Snippets Groups Projects
Commit 166c5414 authored by Johannes Wilhelm's avatar Johannes Wilhelm
Browse files

sdf

parent 5f6c4827
No related branches found
No related tags found
No related merge requests found
......@@ -2,5 +2,5 @@ INSERT INTO zimmer (id, zimmername, anzbett, preis_erw, preis_kind )
VALUES (1,'Zimmer 1',4,50,15)
ON DUPLICATE KEY UPDATE id=id;
INSERT INTO zimmer (id, zimmername, anzbett, preis_erw, preis_kind )
VALUES (2,'Zimmer 2',2,40,10)
VALUES (2,'Zimmer 2',4,35,10)
ON DUPLICATE KEY UPDATE id=id;
\ No newline at end of file
......@@ -21,19 +21,19 @@
<form method="get" th:object="${buchung}">
<form method="post" th:object="${buchung}">
<div class="form-group">
<output for="buchungsid">Hallo</output>
<output class="form-control" id="buchungid"
name="zimmername" th:text="${kunde.nachname+kunde.vorname}">
name="zimmername" th:text="${kunde.nachname}+' '+${kunde.vorname}">
</output>
</div>
<div class="form-group">
<output for="preissum">Preissumme</output>
<output for="preissum">Preis-Gesamt</output>
<output class="form-control" id="preissum"
name="preissum" th:text="*{#numbers.formatCurrency(preissum)}">
</output>
......@@ -77,12 +77,14 @@
name="zimmername" th:text="*{id}">
</output>
</div>
<a class="btn btn-primary mt-5" th:href="@{~/pdfcreater/genpdf/Buchungsbestaetigung.pdf(id=*{id})}">PDF erstellen</a>
<a th:href="@{/welcome}" class="btn btn-primary mt-5">Home</a>
<a class="btn btn-primary mt-5" th:href="@{~/pdfcreater/genpdf/Buchungsbestaetigung.pdf(id=*{id})}">PDF erstellen</a>
<a th:href="@{/welcome}" class="btn btn-primary mt-5">Home</a>
</form>
</div>
<br>
<br>
......
......@@ -13,7 +13,7 @@ Ihre Daten:
<br/>
Zimmer: <b>$zimmer.zimmername</b>
<br/>
Preis-Gesamt: <b>$buchung.preissum</b>
Preis-Gesamt: <b>$buchung.preissum</b>&euro;
<br/>
Check-Out: <b>$buchung.belegtvon</b>
<br/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment