mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2026-11-05 22:29:32 +09: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:
1 parent
d67729ea9d
commit
2cfcf2a8d7
39 files changed
+1634
-695
No files matched your search
@@ -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