Requested gui improvements
Some checks failed
/ Run tests (push) Successful in 1m48s
/ Run system tests (push) Failing after 1m52s
/ Build, push and deploy image (push) Successful in 1m54s

This commit is contained in:
david 2024-11-09 00:43:04 +01:00
parent 98a5f96989
commit d1a4eeea30
16 changed files with 152 additions and 98 deletions

View file

@ -1,5 +1,3 @@
= turbo_stream.update "new_element_frame", partial: "pages/new_element_button", locals: { page: @element.page }
= turbo_stream.append "element_list", @element
= turbo_stream.append dom_id(@element.page, :page_nav_elements) do
i.bi.bi-boxes.me-1
= link_to("#{@element.number} #{@element.title}", "##{dom_id(@element)}", data: { "turbo": false })
= turbo_stream.append dom_id(@element.page, :page_nav_elements), partial: "elements/page_nav_row", locals: { element: @element, current_page: true }