63 lines
2.2 KiB
HTML
63 lines
2.2 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">
|
|
<table id="table" class="table table-striped" sec:authorize="hasRole('Bibelunterricht')">
|
|
<thead>
|
|
<tr>
|
|
<th>Tag</th>
|
|
<th>Wer</th>
|
|
<th>Thema</th>
|
|
<th>Notiz</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr th:each="s : ${list}">
|
|
<td th:data-sort="${#temporals.format(s.slotDay, 'yyyy-MM-dd')}">
|
|
<a th:href="@{/slot/{id}(id=${s.pkSlot})}" th:text="${#temporals.format(s.slotDay, 'dd.MM.yyyy')}"></a><br />
|
|
<span class="smallbadge tagbu" th:if="${s.bibleclass}">Bibelunterricht</span>
|
|
<span class="smallbadge tagju" th:if="${s.youthgroup}">Jungschar</span>
|
|
</td>
|
|
<td><a th:href="@{/lesson?slotId={id}(id=${s.pkSlot})}" class="btn btn-outline-secondary"> <span th:text="${s.abbreviation}" th:if="${s.abbreviation}"></span> <i
|
|
class="bi bi-pencil" th:if="${s.abbreviation == null || s.abbreviation.isBlank()}"></i>
|
|
</a></td>
|
|
<td>
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-11">
|
|
<div th:text="${s.theme}"></div>
|
|
<div th:text="${s.subtheme}"></div>
|
|
<div th:text="${s.lessonNotes}" class="sidenote"></div>
|
|
</div>
|
|
<div class="col-1">
|
|
<a th:href="@{/theme?slotId={id}(id=${s.pkSlot})}" class="btn btn-outline-secondary"><i class="bi bi-pencil"></i></a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td><span th:text="${s.slotNotes}" class="rightpadding64"></span></td>
|
|
</tr>
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="4">
|
|
<a th:href="@{/slot}" class="btn btn-outline-success">ein neues Datum anlegen</a>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
<script th:inline="javascript">
|
|
/*<![CDATA[*/
|
|
$(document).ready(function() {
|
|
$("#table").DataTable({
|
|
"order" : [ [ 0, 'desc' ] ],
|
|
"language" : locale_de
|
|
});
|
|
});
|
|
/*]]>*/
|
|
</script>
|
|
</div>
|
|
</th:block>
|
|
</body>
|
|
</html> |