copy sections (template) and fix cards inclusion

This commit is contained in:
2022-12-03 00:14:19 +02:00
parent 1e452ca62a
commit ecaf0eb587
5 changed files with 38 additions and 12 deletions

View File

@ -13,6 +13,7 @@
= blue_button( "Up" , section_move_url(section.id , dir: :up) )
= 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) )
.relative.block.border.border-gray-100.p-4
%h3.mt-4.text-lg.font-bold Template