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

@ -15,10 +15,10 @@
%button.mt-4.rounded-lg.bg-yellow-500.p-4
=link_to "Down" , "/index"
%button.mt-4.rounded-lg.bg-blue-400.p-4
=link_to "Edit" , "/index"
=link_to "Edit" , cms_page_section_path(@page.name , 1234)
%button.mt-4.rounded-lg.bg-cyan-400.p-4
=link_to "New" , "/index"
%button.mt-4.rounded-lg.bg-red-400.p-4
=link_to "Delete" , "/index"
-section.content.each do |key , value|
= render "cms/sections/#{key}", section: section , key: key , value: value
= render "cms/sections/data/#{key}", section: section , key: key , value: value