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,29 +1,32 @@
.border-bottom.mb-3
h1
i.bi.bi-journal-text.me-2
= @report.name
div
small.float-end
| Erstellt am
small
'Erstellt am
= l(@report.created_at, format: :short)
| , zuletzt bearbeitet am
', zuletzt bearbeitet am
= l(@report.updated_at, format: :short)
h1
i.bi.bi-journal-text.me-2
= @report.name
- if @report.comment
.smb-4.lead.mb-3
= @report.comment
.smb-4.lead.mb-5
= @report.comment || tag.i("leer")
- if @current_page
h2
i.bi.bi-file-earmark-check
=< @current_page.position
=< @current_page.path
p
'URL:
= safe_display(@current_page.full_url) { link_to(_1, _1, target: :_blank) }
p.actions
.d-flex.justify-content-end data-controller="details-list" data-target-id="element_list"
.btn-group.me-3
= link_to("Alle zu [s]", "#", data: { action: "click->details-list#closeAll", controller: :hotkey, hotkey: "s" }, class: "btn btn-outline-secondary")
= link_to("Alle auf [a]", "#", data: { action: "click->details-list#openAll", controller: :hotkey, hotkey: "a" }, class: "btn btn-outline-secondary")
= button_to(tag.i(class: "bi bi-trash"), page_path(@current_page), method: :delete, class: "btn btn-outline-danger", form: {data: { turbo_confirm: "Bist du sicher?" }})
.current_page data-controller="details-list" data-target-id="element_list"
.border-bottom.mb-3.d-flex
h2
i.bi.bi-file-earmark-check
=< @current_page.position
=< @current_page.path
= page_menu(@current_page)
p
'URL:
= safe_display(@current_page.full_url) { link_to(_1, _1, target: :_blank) }
p.actions
.d-flex.justify-content-end
.btn-group.me-3.visually-hidden
= link_to("Alle zu [s]", "#", data: { action: "click->details-list#closeAll", controller: :hotkey, hotkey: "s" }, class: "btn btn-outline-secondary")
= link_to("Alle auf [a]", "#", data: { action: "click->details-list#openAll", controller: :hotkey, hotkey: "a" }, class: "btn btn-outline-secondary")
/= button_to(tag.i(class: "bi bi-trash"), page_path(@current_page), method: :delete, class: "btn btn-outline-danger", form: {data: { turbo_confirm: "Bist du sicher?" }})
.row
.col-lg-3.col-md-4.col-sm-12
.page_nav.sticky-top