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:
@@ -128,12 +128,12 @@
|
||||
</div>
|
||||
|
||||
<div th:each="level : ${lab.levels}" th:remove="tag">
|
||||
<dialog th:id="|modal-level-rename-${level.id}|" class="modal">
|
||||
<div class="modal-header">
|
||||
<h2 class="modal-title">Переименовать уровень</h2>
|
||||
<button class="modal-close" type="button" aria-label="Закрыть">✕</button>
|
||||
<dialog th:id="|modal-level-rename-${level.id}|" 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/labs/{labId}/levels/save(labId=${lab.id})}" method="post">
|
||||
<input type="hidden" name="_csrf" th:value="${csrfToken}">
|
||||
<input type="hidden" name="levelId" th:value="${level.id}">
|
||||
@@ -144,12 +144,12 @@
|
||||
</form>
|
||||
</div>
|
||||
</dialog>
|
||||
<dialog th:id="|modal-variant-add-${level.id}|" class="modal">
|
||||
<div class="modal-header">
|
||||
<h2 class="modal-title" th:text="|Новый вариант — ${level.title}|">Новый вариант</h2>
|
||||
<button class="modal-close" type="button" aria-label="Закрыть">✕</button>
|
||||
<dialog th:id="|modal-variant-add-${level.id}|" class="dlg">
|
||||
<div class="dlg-header">
|
||||
<h2 class="dlg-title" th:text="|Новый вариант — ${level.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/labs/{labId}/variants/save(labId=${lab.id})}"
|
||||
method="post">
|
||||
<input type="hidden" name="_csrf" th:value="${csrfToken}">
|
||||
@@ -168,12 +168,12 @@
|
||||
</div>
|
||||
</dialog>
|
||||
<th:block th:each="v : ${level.variants}">
|
||||
<dialog th:id="|modal-variant-edit-${v.id}|" class="modal">
|
||||
<div class="modal-header">
|
||||
<h2 class="modal-title" th:text="|Вариант ${v.number}|">Вариант</h2>
|
||||
<button class="modal-close" type="button" aria-label="Закрыть">✕</button>
|
||||
<dialog th:id="|modal-variant-edit-${v.id}|" class="dlg">
|
||||
<div class="dlg-header">
|
||||
<h2 class="dlg-title" th:text="|Вариант ${v.number}|">Вариант</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/labs/{labId}/variants/save(labId=${lab.id})}"
|
||||
method="post">
|
||||
<input type="hidden" name="_csrf" th:value="${csrfToken}">
|
||||
|
||||
Reference in New Issue
Block a user