start on section edit (without edit)
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
||||
= link_to cms_page.name , cms_page_path(cms_page.name)
|
||||
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
||||
= cms_page.template
|
||||
= cms_page.first_template
|
||||
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
||||
= cms_page.content.length
|
||||
%td.whitespace-nowrap.px-4.py-2
|
||||
|
@ -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" , cms_page_section_path(@page.name , 1234)
|
||||
=link_to "Edit" , cms_page_section_path(@page.name , section.id)
|
||||
%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/data/#{key}", section: section , key: key , value: value
|
||||
= render "cms/sections/overview/#{key}", section: section , key: key , value: value
|
||||
|
Reference in New Issue
Block a user