cleaning destroys and messages
This commit is contained in:
@ -19,7 +19,8 @@
|
||||
%h3.mt-4.text-lg.font-bold Card #{index + 1}
|
||||
= blue_button( "Up" , card_move_url(card.id , dir: :up) )
|
||||
= blue_button( "Down" , card_move_url(card.id , dir: :down) )
|
||||
= red_button( "Delete" , card_remove_path(card.id) )
|
||||
= form_tag( card_url(card.id) , {method: :delete } ) do
|
||||
=submit_button( "Delete" , true)
|
||||
.p-4
|
||||
%h3.mt-4.text-lg.font-bold Image
|
||||
= yellow_button("Change Image" , card_select_image_url(card.id) )
|
||||
|
@ -21,7 +21,7 @@
|
||||
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
||||
= merged_page.first_template
|
||||
%td.whitespace-nowrap.px-4.py-2.text-gray-700
|
||||
= merged_page.content.length
|
||||
= merged_page.sections.length
|
||||
%td.whitespace-nowrap.px-4.py-2
|
||||
%strong.rounded.bg-green-100.px-3.text-xs.font-medium.text-green-700{:class => "py-1.5"}
|
||||
= link_to 'Sections', page_sections_path(merged_page.name)
|
||||
|
@ -13,7 +13,8 @@
|
||||
= blue_button( "Down" , section_move_url(section.id , dir: :down) )
|
||||
= yellow_button("Edit" , section_path(section.id) )
|
||||
= green_button( "Copy" , new_page_section_url(@page.name, template: section.template) )
|
||||
= red_button( "Delete" , section_remove_path(section.id) )
|
||||
= form_tag( section_url(section.id) , {method: :delete } ) do
|
||||
=submit_button( "Delete" , true)
|
||||
.relative.block.border.border-gray-100.p-4
|
||||
%h3.mt-4.text-lg.font-bold Template
|
||||
= link_to(section_select_template_url(section.id)) do
|
||||
@ -42,9 +43,11 @@
|
||||
%p
|
||||
= name
|
||||
= value
|
||||
.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)
|
||||
.grid.grid-cols-2.gap-2.m-8
|
||||
.relative.block
|
||||
%p
|
||||
= green_button( "New Section" , new_page_section_url(@page.name) )
|
||||
.relative.block
|
||||
%p
|
||||
= form_tag( page_url(@page.name) , {method: :delete } ) do
|
||||
=submit_button( "Delete Page" , true)
|
||||
|
Reference in New Issue
Block a user