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

444

parent 464294ef
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ public class Buchung {
public Buchung() {
this.belegtvon = LocalDateTime.now();
// this.belegtvon = LocalDateTime.now();
}
......
......@@ -11,18 +11,29 @@
<nav th:include="menu::menu"></nav>
<div class="container-fluid"><h2 th:text="${title3}">Formular</h2></div>
<div class="container-fluid">
<form method="post" action="save2" th:object="${buchung}">
<div class="two-fields">
<div><input type="hidden" name="id" th:value="*{id}" /></div>
<div class="form-group">
<label for="belegtvon">von wann</label>
<div class="field required">
<label for="belegtvon">check in date</label>
<input type="text" class="form-control" id="belegtvon"
placeholder="belegtvon" name="belegtvon" th:value="*{belegtvon}" />
</div>
<div class="field required">
<label for="belegtbis">check out date</label>
<input type="text" class="form-control" id="belegtbis"
placeholder="belegtbis" name="belegtvon" th:value="*{belegtvon}" />
</div>
</div>
<div class="container-fluid">
<button type="submit" class="btn btn-default">Buchen ?</button>
<a class="navbar-brand" th:href="@{~/welcome}">zurück Home </a>
</div>
</form>
</div>
<div th:include="foot::foot"></div>
......
......@@ -29,8 +29,8 @@
class="form-control" id="telefon" name="telefon"
th:value="*{telefon}" />
</div>
<button type="submit" class="btn btn-default">Speichern</button>
<a class="navbar-brand" th:href="@{~/buchung/edit2}">buchen </a>
<button type="submit" class="btn btn-default">Kundendaten speichern</button>
<a class="navbar-brand" th:href="@{~/buchung/edit2}">weiter zur Buchung </a>
</form>
</div>
......
......@@ -21,15 +21,14 @@
<li class="dropdown" >
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Zimmer <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a th:href="@{~/zimmer/zimmer1}">Zimmer 1</a></li>
<li><a th:href="@{~/buchung/buchung1}">buchen</a></li>
<!-- <li><a th:href="@{~/fahrt/findAll}">Alle Buchungen</a></li> -->
<li><a th:href="@{~/zimmer/zimmer1}">Alle Zimmer</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Registrierung<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a th:href="@{~/kunde/edit}">Neues Zimmer eintragen</a></li>
<li><a th:href="@{~/kunde/edit}">Buchung</a></li>
<li><a th:href="@{~/boot/findAll}">Alle Zimmer</a></li>
<li role="separator" class="divider"></li>
<li><a th:href="@{~/person/edit}">Neuen Kunden eintragen</a></li>
......
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