preview page depending on roles

This commit is contained in:
Jottyfan
2024-12-01 19:38:19 +01:00
parent 9c10da579c
commit 3c90142162

View File

@ -4,13 +4,16 @@
<th:block layout:fragment="content">
<div class="borderdist">
<div class="container" sec:authorize="hasAnyRole('Kinderstunde klein', 'Bibelunterricht')">
<div class="row">
<div class="col-sm-6 col-md-4 col-lg-2 card p-2 m-1" th:each="s : ${list}">
<div th:text="${#temporals.format(s.day, 'dd.MM.yyyy')}"></div>
<div th:text="${s.fullname}"></div>
<th:block th:if="${hasBURole || hasDateRole}">
<pre>Kommende Einteilung für den Bibelunterricht</pre>
<div class="row">
<div class="col-sm-6 col-md-4 col-lg-2 card p-2 m-1" th:each="s : ${list}">
<div th:text="${#temporals.format(s.day, 'dd.MM.yyyy')}"></div>
<div th:text="${s.fullname}"></div>
</div>
<div class="alert alert-info" th:if="${list.size() < 1}">Es gibt noch keine neuen Termine oder Zusagen für Termine.</div>
</div>
<div class="alert alert-info" th:if="${list.size() < 1}">Es gibt noch keine neuen Termine oder Zusagen für Termine.</div>
</div>
</th:block>
</div>
</div>
</th:block>