42 lines
1.7 KiB
HTML
42 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns:th="http://www.thymeleaf.org" layout:decorate="~{template}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
|
|
<body>
|
|
<th:block layout:fragment="content">
|
|
<div class="borderdist">
|
|
<div class="container" sec:authorize="hasRole('Bibelunterricht')">
|
|
<div class="row g-2">
|
|
<div class="col-sm-12">
|
|
<h2>Dozent-Reservierung</h2>
|
|
</div>
|
|
</div>
|
|
<form th:action="@{/lesson/{id}(id=${bean.pkLesson})}" method="post" th:object="${bean}">
|
|
<div class="row g-3">
|
|
<div class="col-sm-3">Tag</div>
|
|
<div class="col-sm-9">
|
|
<span th:text="${#temporals.format(slotDay, 'dd.MM.yyyy')}"></span>
|
|
</div>
|
|
<div class="col-sm-3">Dozent</div>
|
|
<div class="col-sm-9">
|
|
<select th:field="*{fkPerson}" class="form-select">
|
|
<option value="">--- bitte wählen ---</option>
|
|
<option th:each="p : ${persons}" th:value="${p.pkPerson}" th:text="${p.forename + ' ' + p.surname}"></option>
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-3">Anmerkungen</div>
|
|
<div class="col-sm-9">
|
|
<textarea th:field="*{notes}" class="form-control"></textarea>
|
|
</div>
|
|
<div class="col-sm-3"></div>
|
|
<div class="col-sm-9">
|
|
<button type="submit" class="btn btn-outline-success">Speichern</button>
|
|
<a th:href="@{/}" class="btn btn-outline-secondary">Abbrechen</a>
|
|
<a th:href="@{/lesson/{id}/remove(id=${bean.pkLesson})}" class="btn btn-outline-danger">Zuordnung löschen</a>
|
|
<a th:href="@{/slot/{id}(id=${bean.fkSlot})}" class="btn btn-outline-warning">Termin bearbeiten</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</th:block>
|
|
</body>
|
|
</html> |