basic theme selection

This commit is contained in:
Jottyfan
2023-12-16 17:59:15 +01:00
parent 690f28f4fe
commit bff5d1e54f
10 changed files with 625 additions and 3 deletions

View File

@@ -0,0 +1,64 @@
<!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:block th:each="b : ${list}" th:if="${list.size() > 0}">
<div class="row g-2 blockframe">
<div class="col-sm-3">Thema:</div>
<div class="col-sm-8"><span th:text="${b.theme}"></span></div>
<div class="col-sm-1">
<div class="dropdown">
<button class="btn btn-outline-danger dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-trash"></i>
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" th:href="@{/theme/delete?lessonSubjectId={id}&slotId={s}(id=${b.pkLessonSubject},s=${slotId})}">ja, endgültig verwerfen</a></li>
</ul>
</div>
</div>
<div class="col-sm-3">Unterthema:</div>
<div class="col-sm-9"><span th:text="${b.subtheme}"></span></div>
<div class="col-sm-3">Buchseiten:</div>
<div class="col-sm-9"><span th:text="${b.bookPages}"></span></div>
<div class="col-sm-3">Arbeitsblätter:</div>
<div class="col-sm-9"><span th:text="${b.worksheets}"></span></div>
<div class="col-sm-3">Bibelvers (Lernvers):</div>
<div class="col-sm-9"><span th:text="${b.bibleverse}"></span></div>
<div class="col-sm-3">Anmerkungen zum Thema:</div>
<div class="col-sm-9"><span th:text="${b.notes}"></span></div>
<div class="col-sm-3">Quelle:</div>
<div class="col-sm-9"><span th:text="${b.sourceName}"></span></div>
</div>
</th:block>
<form th:action="@{/theme/update?slotId={id}(id=${slotId})}" method="post" th:object="${lesson}">
<input type="hidden" th:field="*{pkLesson}" />
<div class="row g-2 blockframe">
<div class="col-sm-3">Anmerkungen zur Stunde</div>
<div class="col-sm-9">
<textarea th:field="*{notes}" class="form-control"></textarea>
</div>
<div class="col-sm-3">&nbsp;</div>
<div class="col-sm-9">
<button type="submit" class="btn btn-outline-primary">Übernehmen</button>
<button type="reset" class="btn btn-outline-secondary">Verwerfen</button>
</div>
</div>
</form>
<form th:action="@{/theme/add?slotId={id}(id=${slotId})}" method="post">
<div class="row g-2">
<div class="col-sm-3">ein Thema hinzufügen</div>
<div class="col-sm-7">
<select name="pkSubject" class="form-select">
<option th:each="t : ${themes}" th:value="${t.key}" th:text="${t.value}"></option>
</select>
</div>
<div class="col-sm-2"><button type="submit" class="btn btn-outline-primary">hinzufügen</button></div>
</div>
</form>
</div>
</div>
</th:block>
</body>
</html>