only move cards within same page

This commit is contained in:
2023-01-25 15:16:32 +02:00
parent bafe142a3b
commit 594f2b5dce
5 changed files with 25 additions and 120 deletions

View File

@ -33,8 +33,8 @@
= form_for( card , {method: :delete } ) do
%button.button.remove.mt-4{type: :submit} Delete Card
= simple_form_for( card , method: :patch ) do |f|
= f.input :section_id , label: "move to section" , include_blank: false ,
collection: card_section_select
= f.input :section_id , label: "move to section (on this page)" , include_blank: false ,
collection: card_section_select(card)
%button.button.change.mt-4{type: :submit} Move
.basis-80

View File

@ -1,4 +1,4 @@
.fex.flex-col.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm.m-10
.fex.flex-col.overflow-hidden.rounded-lg.border.border-gray-100.shadow-sm
= image_for( card , class: "h-full w-full object-cover")
%h3.p-5.text-2xl.bg-gray-100.text-black.font-bold{ text_align_option(card)}= card.header
%div.h-full{background_option(card)}