Fixed implementation of search with enum fields

This commit is contained in:
Francesco
2023-10-25 10:06:31 +02:00
parent baf6822faf
commit b6cfe37c84
4 changed files with 30 additions and 4 deletions

View File

@@ -61,6 +61,20 @@
></input>
<th:block th:fragment="select(field, create, name, value)">
<select th:name="${name}" class="form-select">
<option value=""
th:selected="${value == null}">NULL</option>
<option th:each="v : ${field.getType().getValues()}"
th:text="${v}"
th:value="${v}"
th:selected="${value == v}">
</option>
</select>
</th:block>
<input placeholder="NULL" th:fragment="date(field, create, name, value)"
type="date"
th:value="${value}"