moved section subsection templetes down

This commit is contained in:
2022-11-26 11:15:56 +02:00
parent 738bfe01a5
commit 27aea8e5ab
19 changed files with 84 additions and 13 deletions

View File

@ -0,0 +1,10 @@
= form_for @cms_section do |f|
- if @cms_section.errors.any?
#error_explanation
%h2= "#{pluralize(@cms_section.errors.count, "error")} prohibited this cms_section from being saved:"
%ul
- @cms_section.errors.full_messages.each do |message|
%li= message
.actions
= f.submit 'Save'

View File

@ -0,0 +1,7 @@
%h1 Editing cms_section
= render 'form'
= link_to 'Show', @cms_section
\|
= link_to 'Back', cms_sections_path

View File

@ -0,0 +1,19 @@
%h1 Listing cms_sections
%table
%thead
%tr
%th
%th
%th
%tbody
- @cms_sections.each do |cms_section|
%tr
%td= link_to 'Show', cms_section
%td= link_to 'Edit', edit_cms_section_path(cms_section)
%td= link_to 'Destroy', cms_section, method: :delete, data: { confirm: 'Are you sure?' }
%br
= link_to 'New Section', new_cms_section_path

View File

@ -0,0 +1,5 @@
%h1 New cms_section
= render 'form'
= link_to 'Back', cms_sections_path

View File

@ -0,0 +1,6 @@
%p#notice= notice
= #link_to 'Edit', edit_cms_section_path(@cms_section)
\|
= #link_to 'Back', cms_sections_path