Bootstrap 5.3 as CSS base + B3 theme layer; dialogs isolated as .dlg; offcanvas sidebar; icons via SVG assets + masks

This commit is contained in:
2026-10-02 23:44:00 +03:00
parent 8c75fd1c8e
commit 03b64586b2
12 changed files with 185 additions and 179 deletions

View File

@@ -106,13 +106,13 @@
</div>
<th:block th:if="${currentUser != null and currentUser.admin}">
<dialog th:id="|modal-rename-section-${section.id}|" class="modal">
<div class="modal-header">
<h2 class="modal-title">Переименовать раздел</h2>
<button class="modal-close" type="button" aria-label="Закрыть"
<dialog th:id="|modal-rename-section-${section.id}|" class="dlg">
<div class="dlg-header">
<h2 class="dlg-title">Переименовать раздел</h2>
<button class="dlg-close" type="button" aria-label="Закрыть"
th:attr="data-modal=|modal-rename-section-${section.id}|">✕</button>
</div>
<div class="modal-body">
<div class="dlg-body">
<form class="form-stack" th:action="@{/admin/content/sections/{id}/rename(id=${section.id})}" method="post">
<input type="hidden" name="_csrf" th:value="${csrfToken}">
<input type="hidden" name="back" th:value="${back}">
@@ -122,13 +122,13 @@
</form>
</div>
</dialog>
<dialog th:id="|modal-move-${section.id}|" class="modal">
<div class="modal-header">
<h2 class="modal-title">Перенести статьи из раздела</h2>
<button class="modal-close" type="button" aria-label="Закрыть"
<dialog th:id="|modal-move-${section.id}|" class="dlg">
<div class="dlg-header">
<h2 class="dlg-title">Перенести статьи из раздела</h2>
<button class="dlg-close" type="button" aria-label="Закрыть"
th:attr="data-modal=|modal-move-${section.id}|">✕</button>
</div>
<div class="modal-body">
<div class="dlg-body">
<form class="form-stack" th:action="@{/admin/content/sections/{id}/delete(id=${section.id})}" method="post">
<input type="hidden" name="_csrf" th:value="${csrfToken}">
<input type="hidden" name="back" th:value="${back}">
@@ -150,12 +150,12 @@
</div>
</div>
<dialog id="modal-rename-chapter" class="modal">
<div class="modal-header">
<h2 class="modal-title">Переименовать главу</h2>
<button class="modal-close" type="button" aria-label="Закрыть">✕</button>
<dialog id="modal-rename-chapter" class="dlg">
<div class="dlg-header">
<h2 class="dlg-title">Переименовать главу</h2>
<button class="dlg-close" type="button" aria-label="Закрыть">✕</button>
</div>
<div class="modal-body">
<div class="dlg-body">
<form class="form-stack" th:action="@{/admin/content/chapters/{id}/rename(id=${chapter.id})}" method="post">
<input type="hidden" name="_csrf" th:value="${csrfToken}">
<input type="hidden" name="back" th:value="${back}">
@@ -166,12 +166,12 @@
</div>
</dialog>
<dialog id="modal-new-section" class="modal">
<div class="modal-header">
<h2 class="modal-title">Новый раздел в главе</h2>
<button class="modal-close" type="button" aria-label="Закрыть">✕</button>
<dialog id="modal-new-section" class="dlg">
<div class="dlg-header">
<h2 class="dlg-title">Новый раздел в главе</h2>
<button class="dlg-close" type="button" aria-label="Закрыть">✕</button>
</div>
<div class="modal-body">
<div class="dlg-body">
<form class="form-stack" th:action="@{/admin/content/sections/create}" method="post">
<input type="hidden" name="_csrf" th:value="${csrfToken}">
<input type="hidden" name="chapterId" th:value="${chapter.id}">