feat(#25): Add date form element

This commit is contained in:
2025-12-01 06:28:36 +01:00
parent 9dc690715b
commit ed36db97a1
9 changed files with 315 additions and 195 deletions

View File

@@ -157,6 +157,15 @@
<p th:if="${elem.options.isEmpty() || elem.options.?[!value.isEmpty()].isEmpty()}">Keine Eingabe</p>
</div>
<div th:case="'DATE'">
<div th:each="option : ${elem.options}">
<p th:if="${!option.value.isEmpty()}"
th:with="dateValue=${#temporals.createDate(option.value, 'yyyy-MM-dd')}"
th:text="${#temporals.format(dateValue, 'dd.MM.yyyy')}"></p>
</div>
<p th:if="${elem.options.isEmpty() || elem.options.?[!value.isEmpty()].isEmpty()}">Kein Datum ausgewählt</p>
</div>
<div th:case="'TITLE_BODY_TEXTFIELDS'">
<div th:each="option : ${elem.options}">
<div th:if="${!option.value.isEmpty()}" th:with="parts=${#strings.arraySplit(option.value, '|||')}">