start on section edit (without edit)

This commit is contained in:
2022-11-26 19:07:20 +02:00
parent 29183a3394
commit 1823f5cb3e
23 changed files with 70 additions and 5 deletions

View File

@ -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

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" , 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