move cards
This commit is contained in:
@ -31,9 +31,9 @@
|
||||
.basis-full.mb-3
|
||||
= form_for( card , {method: :delete } ) do
|
||||
=submit_button( "Delete Card" , true)
|
||||
= simple_form_for( card , method: :post ) do |f|
|
||||
= simple_form_for( card , method: :patch ) do |f|
|
||||
= f.input :section_id , label: "move to section" , include_blank: false ,
|
||||
collection: Merged::Page.all.collect{|p| [p.name , p.id]}
|
||||
collection: card_section_select
|
||||
=submit_button( "Move")
|
||||
|
||||
.basis-80
|
||||
|
@ -1,9 +1,14 @@
|
||||
.text-xl.font-bold.text-gray-900
|
||||
= section.page.type.capitalize
|
||||
=link_to section.page.name, merged.page_sections_path(section.page.id), class: "underline"
|
||||
\:
|
||||
= link_to section.page.name, merged.page_sections_path(section.page.id), class: "underline text-3xl ml-3"
|
||||
.text-xl.font-bold.text-gray-900
|
||||
%span
|
||||
Section
|
||||
\:
|
||||
= link_to section.header, section_path(section), class: "underline text-3xl ml-3"
|
||||
.link
|
||||
.inline-flex.items-center.justify-center.gap-3
|
||||
.text-xl.font-bold.text-gray-900
|
||||
Section #{section.header}
|
||||
- if section.previous_section
|
||||
=link_to merged.section_path(section.previous_section.id) , class: "inline-flex h-8 w-8 items-center justify-center rounded border border-gray-100 hover:bg-sky-100" do
|
||||
%span.sr-only Next Section
|
||||
|
@ -1,4 +1,4 @@
|
||||
.mx-20.flex.h-16.items-center.gap-16
|
||||
.mx-20.flex.h-16.items-center.gap-16.w-full
|
||||
= render "sections_pagination" , section: @section
|
||||
= link_to( "New Section" , merged.new_page_section_path(@section.page.id) , class: button_classes + " bg-cyan-100")
|
||||
|
||||
|
Reference in New Issue
Block a user