mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-08-13 07:01:13 +00:00
Fixed implementation of search with enum fields
This commit is contained in:
@@ -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}"
|
||||
|
Reference in New Issue
Block a user