mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-08-10 22:11:13 +00:00
Refactored field type system and Enum
support
In order to support the `Enum` field type the `DbFieldType` enum has been converted to an abstract class with an implementation class for each database field type.
This commit is contained in:
@@ -77,6 +77,18 @@
|
||||
></input>
|
||||
</div>
|
||||
</th:block>
|
||||
<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>
|
||||
<!--
|
||||
<th:block th:fragment="offset_datetime(field, create, name, value)">
|
||||
<div class="form-group">
|
||||
|
Reference in New Issue
Block a user