Disabled edit link

This commit is contained in:
Francesco 2023-10-06 15:31:05 +02:00
parent b84a139d12
commit 9c058c188b
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1 @@
restart.include.dbadmin:/spring-boot-db-admin-[\\w-\\.]+\.jar

View File

@ -22,7 +22,9 @@
<div class="box"> <div class="box">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<h3 class="mb-3 fw-bold" th:text="${object.getDisplayName()}"></h3> <h3 class="mb-3 fw-bold" th:text="${object.getDisplayName()}"></h3>
<h3><a th:href="|/${baseUrl}/model/${schema.getClassName()}/edit/${object.getPrimaryKeyValue()}|"> <h3><a
th:class="|${!schema.isEditEnabled() ? 'disable' : ''}|"
th:href="|/${baseUrl}/model/${schema.getClassName()}/edit/${object.getPrimaryKeyValue()}|">
<i class="bi bi-pencil"></i></a> <i class="bi bi-pencil"></i></a>
</h3> </h3>
</div> </div>