This commit is contained in:
Francesco 2023-10-10 11:20:38 +02:00
parent 909e027441
commit 737fac7bab
2 changed files with 9 additions and 5 deletions

View File

@ -60,11 +60,11 @@
></input>
</div>
</th:block>
<th:block th:fragment="datetime(field, create, name, value)"
<span class="input-group-text font-monospace">
[[ ${field.getType()} ]]
</span>
<th:block th:fragment="datetime(field, create, name, value)">
<div class="input-group">
<span class="input-group-text font-monospace">
[[ ${field.getType()} ]]
</span>
<input placeholder="NULL"
type="datetime-local"
th:value="${value}"

View File

@ -23,9 +23,13 @@
<div class="d-flex justify-content-between">
<h3 class="mb-3 fw-bold" th:text="${object.getDisplayName()}"></h3>
<h3><a
th:class="|${!schema.isEditEnabled() ? 'disable' : ''}|"
th:class="|${!schema.isEditEnabled() ? 'disable' : ''} me-2|"
th:href="|/${dbadmin_baseUrl}/model/${schema.getClassName()}/edit/${object.getPrimaryKeyValue()}|">
<i class="bi bi-pencil"></i></a>
<a th:title="|${!schema.isCreateEnabled() ? 'CREATE disabled for this type' : 'Create new item'}|"
th:class="|${!schema.isCreateEnabled() ? 'disable' : ''}|"
th:href="|/${dbadmin_baseUrl}/model/${schema.getClassName()}/create|"><i class="bi bi-plus-square"></i></a>
</h3>
</div>