- 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:
Francesco
2023-10-05 09:38:17 +02:00
parent bebc562961
commit 4177bdcd43
9 changed files with 124 additions and 32 deletions

View File

@@ -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}"