This commit is contained in:
Jörg Henke 2023-05-03 22:06:38 +02:00
parent 24e4c78820
commit 1f60d61428
2 changed files with 42 additions and 41 deletions

View File

@ -18,7 +18,7 @@ apply plugin: 'war'
apply plugin: 'application' apply plugin: 'application'
group = 'de.jottyfan.camporganizer' group = 'de.jottyfan.camporganizer'
version = '0.4.8' version = '0.4.9'
sourceCompatibility = 17 sourceCompatibility = 17
mainClassName = "de.jottyfan.camporganizer.Main" mainClassName = "de.jottyfan.camporganizer.Main"

View File

@ -2,17 +2,16 @@
<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"> <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> <body>
<div th:fragment="camplist(camps)"> <div th:fragment="camplist(camps)">
<script type="text/javascript"> <div class="accordion block660" id="accordionExample">
var mytoggle = new MyToggle(); <div class="accordion-item" th:each="c : ${camps}">
</script> <h2 class="accordion-header" style="background: transparent" th:id="'heading' + ${c.pk}">
<div class="card bottomdist16 block660" style="background: transparent" th:each="c : ${camps}"> <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" th:data-bs-target="'#collapse' + ${c.pk}" aria-expanded="false" th:aria-controls="'collapse' + ${c.pk}">
<div class="card-header mytoggle_btn" style="background: transparent" th:onclick="mytoggle.toggle('campdiv_[[${c.pk}]]')">
<div style="margin-left: auto; margin-right: auto;">
<span th:text="${c.name}" class="headlinefont"></span><span class="headlinefont">&nbsp;</span><span th:text="${#numbers.formatInteger(c.year, 0)}" class="headlinefont" <span th:text="${c.name}" class="headlinefont"></span><span class="headlinefont">&nbsp;</span><span th:text="${#numbers.formatInteger(c.year, 0)}" class="headlinefont"
th:if="${c.year != null}"></span> th:if="${c.year != null}"></span>
</div> </button>
</div> </h2>
<div th:id="'campdiv_' + ${c.pk}" class="card-body mytoggle_collapsed"> <div th:id="'collapse' + ${c.pk}" class="accordion-collapse collapse" th:aria-labelledby="'heading' + ${c.pk}" data-bs-parent="#accordionExample">
<div class="accordion-body">
<table style="width: 100%"> <table style="width: 100%">
<tr> <tr>
<td rowspan="4"><img th:src="@{/images/Icon_Stern.svg}" width="36px" height="36px" style="margin-left: 24px" /></td> <td rowspan="4"><img th:src="@{/images/Icon_Stern.svg}" width="36px" height="36px" style="margin-left: 24px" /></td>
@ -46,5 +45,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
</body> </body>
</html> </html>