a11yist/app/views/elements/update.turbo_stream.slim
david 2293751fe2
Some checks failed
/ Run tests (push) Failing after 1m43s
/ Run system tests (push) Failing after 2m10s
/ Build, push and deploy image (push) Has been skipped
Add screenshots to elements
2024-11-12 22:43:59 +01:00

8 lines
No EOL
623 B
Text

- @element.page.elements.each do |element|
= turbo_stream.update dom_id(element, :page_nav_title), "#{element.number} #{element.title}"
= turbo_stream.update dom_id(element, :title), "#{element.page.position}.#{element.position} #{element.title}"
/ - element.success_criteria.each do |sc|
/ = turbo_stream.update dom_id(sc, :title), "#{sc.page.position}.#{sc.element.position}.#{sc.position} #{sc.title}"
- element.success_criteria.each do |sc|
= turbo_stream.update dom_id(sc, :position), "#{sc.page.position}.#{sc.element.position}.#{sc.position}"
= turbo_stream.replace dom_id(element, :frame), element