Model menus, modal edit and layout improvements
This commit is contained in:
parent
7b0f05a448
commit
70500c49a1
35 changed files with 1079 additions and 148 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue