first steps of items

This commit is contained in:
Jottyfan
2023-11-18 00:31:43 +01:00
parent 80696b0c0b
commit 0c18b2df56
14 changed files with 383 additions and 4 deletions

View File

@ -0,0 +1,41 @@
<!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" th:if="${bean}">
<div class="row g-2">
<div class="col-sm-2">Tag</div>
<div class="col-sm-10" th:text="${#temporals.format(bean.slotDay, 'yyyy-MM-dd')}"></div>
<div class="col-sm-2">Lehreinheiten</div>
<div class="col-sm-10">
<div class="row g-2" th:each="l : ${bean.lessons}">
<div class="col-sm-2">Dozent</div>
<div class="col-sm-10">
<div th:each="p : ${l.persons}" th:text="${p.forename} + ' ' + ${p.surname}"></div>
</div>
<div class="col-sm-2">Themen</div>
<div class="col-sm-10">
<div class="row g-2" th:each="x : ${l.subjects}">
<div class="col-sm-2">Thema</div>
<div class="col-sm-10" th:text="${x.theme}"></div>
<div class="col-sm-2">Unterthema</div>
<div class="col-sm-10" th:text="${x.subtheme}"></div>
<div class="col-sm-2">Buchseiten</div>
<div class="col-sm-10" th:text="${x.bookPages}"></div>
<div class="col-sm-2">Arbeitsblätter</div>
<div class="col-sm-10" th:text="${x.worksheets}"></div>
<div class="col-sm-2">Bibelvers</div>
<div class="col-sm-10" th:text="${x.bibleverse}"></div>
<div class="col-sm-2">Quelle</div>
<div class="col-sm-10" th:text="${x.source?.name}"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</th:block>
</body>
</html>

View File

@ -12,6 +12,7 @@
<th>Thema</th>
<th>Unterthema</th>
<th>Tag-Anmerkungen</th>
<th></th>
</tr>
</thead>
<tbody>
@ -22,6 +23,7 @@
<td th:text="${s.theme}"></td>
<td th:text="${s.subtheme}"></td>
<td th:text="${s.slotNotes}"></td>
<td><a th:href="@{/item/{slot}(slot=${s.pkSlot})}" class="btn btn-outline-secondary"><i class="bi bi-pencil"></i></a></td>
</tr>
</tbody>
</table>