add proper flash messages
This commit is contained in:
@ -1,5 +1,3 @@
|
||||
%p#notice= notice
|
||||
|
||||
- template = find_template(@section)
|
||||
= render( template , section: @section)
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
%p#notice= notice
|
||||
.flex.flex-col.bg-white
|
||||
.flex.items-center.justify-center.flex-1
|
||||
.max-w-xl.px-4.py-8.mx-auto.text-center
|
||||
@ -17,8 +16,9 @@
|
||||
= red_button( "Delete" , section_remove_path(section.id) )
|
||||
.relative.block.border.border-gray-100.p-4
|
||||
%h3.mt-4.text-lg.font-bold Template
|
||||
%p= section.template
|
||||
= section_preview(section , class: "w-full object-contain")
|
||||
= link_to(section_select_template_url(section.id)) do
|
||||
%p= section.template
|
||||
= section_preview(section , class: "w-full object-contain")
|
||||
.relative.block.border.border-gray-100.p-4
|
||||
%h3.mt-4.text-lg.font-bold Header
|
||||
%p= section.header
|
||||
@ -30,16 +30,21 @@
|
||||
=link_to section_cards_url(section.id) do
|
||||
=card_preview(section , class: "w-full object-contain")
|
||||
- else
|
||||
%h3.mt-4.text-lg.font-bold Image
|
||||
-if section.image
|
||||
= image_tag "cms/" + section.image
|
||||
-else
|
||||
%p No image
|
||||
= link_to(section_select_image_url(section.id)) do
|
||||
%h3.mt-4.text-lg.font-bold Image
|
||||
-if section.image
|
||||
= image_tag "cms/" + section.image
|
||||
-else
|
||||
%p No image
|
||||
.relative.block.border.border-gray-100.p-4
|
||||
%h3.mt-4.text-lg.font-bold Options
|
||||
- section.options.each do|name , value|
|
||||
%p
|
||||
= name
|
||||
= value
|
||||
%p
|
||||
= green_button( "New Section" , new_page_section_url(@page.name) )
|
||||
.relative.block.border.border-gray-100
|
||||
%p
|
||||
= green_button( "New Section" , new_page_section_url(@page.name) )
|
||||
%p
|
||||
= form_tag( page_url(@page.name) , {method: :delete } ) do
|
||||
=submit_button( "Delete" , true)
|
||||
|
@ -1,6 +1,8 @@
|
||||
%p#notice= notice
|
||||
|
||||
.flex.flex-col.bg-white
|
||||
.flex.items-center.justify-center.flex-1
|
||||
.max-w-xl.px-4.py-8.mx-auto.text-center
|
||||
%h1.text-3xl.font-bold.tracking-tight.text-gray-900
|
||||
Page #{link_to @section.page.name, page_sections_url(@section.page.name), class: "underline"}
|
||||
.flex.items-center.justify-center.flex-1
|
||||
.max-w-xl.px-4.py-8.mx-auto.text-center
|
||||
%h1.text-3xl.font-bold.tracking-tight.text-gray-900
|
||||
|
@ -1,5 +1,3 @@
|
||||
%p#notice= notice
|
||||
|
||||
- template = find_template(@section)
|
||||
= render( template , section: @section)
|
||||
|
||||
|
Reference in New Issue
Block a user