Model menus, modal edit and layout improvements
Some checks failed
/ Run tests (push) Successful in 2m44s
/ Run system tests (push) Failing after 2m43s
/ Build, push and deploy image (push) Successful in 4m3s

This commit is contained in:
david 2024-11-23 19:10:09 +01:00
parent 7b0f05a448
commit 70500c49a1
35 changed files with 1079 additions and 148 deletions

View file

@ -1,4 +1,4 @@
.toast class="#{alert ? "text-bg-danger" : ""}" role="alert" aria-live="assertive" aria-atomic="true" data={ controller: "toast" }
.toast class="#{alert ? "text-bg-danger" : "text-bg-info"}" role="alert" aria-live="assertive" aria-atomic="true" data={ controller: "toast" }
.toast-header
/img src="..." class="rounded me-2" alt="...">
/strong.me-auto = heading

View file

@ -17,11 +17,10 @@ html data-bs-theme="#{cookies[:"modeTheme"] || "light"}" data-controller="set-th
#main-content[data-controller="rich-text-link-targets"]
= yield
.toast-container.position-fixed.bottom-0.start-0.p-3 id="toasts"
.toast-container.position-fixed.top-0.end-0.p-3 id="toasts"
- if flash.alert
= render partial: "layouts/toast", locals: { content: flash.alert, alert: true }
- if flash.notice
= render partial: "layouts/toast", locals: { content: flash.notice, alert: false }
/footer.container-fluid.mt-auto.border-top
= Rails.configuration.build_version && "Version: #{Rails.configuration.build_version}"
= turbo_frame_tag "modal"

View file

@ -0,0 +1,9 @@
= turbo_frame_tag "modal" do
dialog.bg-body id="modal" data={ controller: :dialog }
.float-end
form method="dialog"
button.btn.btn-outline-danger
i.bi.bi-x-lg
= yield
data-action="turbo:submit-end->turbo-modal#submitEnd"