moving cards up and down

This commit is contained in:
2022-12-01 19:25:22 +02:00
parent 33ea800735
commit a4af2d6872
5 changed files with 58 additions and 2 deletions

View File

@ -15,9 +15,9 @@
.p-4
%h3.mt-4.text-lg.font-bold Card #{index + 1}
%button.mt-4.rounded-lg.bg-yellow-500.p-4
=link_to( "Up" , "/index")
=link_to( "Up" , card_move_url(card.id , dir: :up) )
%button.mt-4.rounded-lg.bg-yellow-500.p-4
=link_to "Down" , "/index"
=link_to( "Down" , card_move_url(card.id , dir: :down) )
%button.mt-4.rounded-lg.bg-cyan-400.p-4
=link_to "New" , "/index"
%button.mt-4.rounded-lg.bg-red-400.p-4