mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-08-09 21:41:13 +00:00
- Small refactor to the rendering part for input fileds: each field now has its own Thymeleaf
fragment in order to allow easier customization and easier support for different field types (required for #7) - WIP Handle unsupported types gracefully (#9)
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
th:required="${!field.isNullable() && !field.isPrimaryKey()}"
|
||||
></input>
|
||||
<!--
|
||||
<th:block th:fragment="offset_datetime(field, create, name, value)">
|
||||
<div class="form-group">
|
||||
<input placeholder="NULL"
|
||||
@@ -63,6 +64,7 @@
|
||||
</select>
|
||||
</div>
|
||||
</th:block>
|
||||
-->
|
||||
<input placeholder="NULL" th:fragment="date(field, create, name, value)"
|
||||
type="date"
|
||||
th:value="${value}"
|
||||
|
Reference in New Issue
Block a user