Пользователи работают, остаётся решить проблему с departmentId у entrysData

This commit is contained in:
DyCTaTOR 2024-06-05 23:41:01 +04:00
parent b4e93f7719
commit 0fc185659c
3 changed files with 4 additions and 3 deletions

Binary file not shown.

View File

@ -7,7 +7,8 @@
<body>
<main layout:fragment="content">
<form action="#" th:action="@{/departments/edit/{id}(id=${departments.id})}" th:object="${departments}" method="post">
<form action="#" th:action="@{/admin/departments/edit/{id}(id=${departments.id})}" th:object="${departments}"
method="post">
<div class="mb-3">
<label for="id" class="form-label">ID</label>
<input type="text" th:value="*{id}" id="id" class="form-control" readonly disabled>
@ -19,7 +20,7 @@
</div>
<div class="mb-3 d-flex flex-row">
<button class="btn btn-primary me-2 button-fixed-width" type="submit">Сохранить</button>
<a class="btn btn-secondary button-fixed-width" href="/departments">Отмена</a>
<a class="btn btn-secondary button-fixed-width" href="/admin/departments">Отмена</a>
</div>
</form>
</main>

View File

@ -44,7 +44,7 @@
</div>
<div class="mb-3 d-flex flex-row">
<button class="btn btn-primary me-2 button-fixed-width" type="submit">Сохранить</button>
<a class="btn btn-secondary button-fixed-width" href="/news">Отмена</a>
<a class="btn btn-secondary button-fixed-width" th:href="@{/news(page=${page})}">Отмена</a>
</div>
</form>
</main>