-
Johannes Wilhelm authoredJohannes Wilhelm authored
buchung.html 2.52 KiB
<!DOCTYPE html>
<html lang="de" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="head::head"></head>
<body class="container" style="background-image: url('/photos/background.jpg'); background-position:center; background-repeat:no-repeat; background-size:cover;">
<div class="container-fluid">
<h1><img th:src="@{/photos/logo.png}" alt="Logo" width="470" height="150"/></h1>
</div>
<div style="background-color: white; opacity:0.8;">
<nav th:include="menu::menu" ></nav>
</div>
<br>
<br>
<div style="background-color: white; opacity:1">
<div class="container-fluid"><h2 th:text="${title}">Formular</h2></div>
<div class="container"><p th:text="${message}">Nachricht</p></div>
<div class="container-fluid">
<form method="get" action="save2" th:object="${buchung}">
<div><input type="hidden" name="id" th:value="*{id}" /></div>
<div class="form-group">
<label for="belegtvon">check in date*</label>
<input type="date" class="form-control" id="belegtvon"
placeholder="belegtvon" name="belegtvon" th:value="*{belegtvon}" th:field="*{belegtvon}"/>
</div>
<div class="form-group">
<label for="belegtbis">check out date*</label>
<input type="date" class="form-control" id="belegtbis"
placeholder="belegtbis" name="belegtbis" th:value="*{belegtbis}" th:field="*{belegtbis}" />
</div>
<div class="form-group">
<label for="anzbettErw">Belegung Zimmer Erwachsene*</label>
<p class="form-control-static" >
<select th:field="*{erwa_anz}">
<option th:each="i : ${anzbettErw}"
th:value="${i}"
th:text="${i}"
></option>
</select>
</p>
</div>
<div class="form-group">
<label for="anzbettKind">Belegung Zimmer Kinder</label>
<p class="form-control-static" >
<select th:field="*{kind_anz}">
<option th:each="i : ${anzbettKind}"
th:value="${i}"
th:text="${i}">
</option>
</select>
</p>
</div>
<p>* Pflichtfelder </p>
<div class="form-group">
<input type="hidden" name="zimmerid" th:value="${zimmer.id}" />
</div>
<div class="form-group">
<input type="hidden" name="kundenid" th:value="${kunden.id}" />
</div>
<div class="container-fluid">
<button type="submit" class="btn btn-primary mt-5">Buchen</button>
<a th:href="@{/buchung/findAll}" class="btn btn-primary mt-5">Zurück zur Zimmerauswahl</a>
</div>
</form>
</div>
<br>
<br>
<div th:include="foot::foot"></div>
</div>
</body>
</html>