new cards
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
Cards for
|
||||
= link_to "Section #{@section.index + 1}", section_url( @section.id) , class: "underline"
|
||||
|
||||
|
||||
.grid.grid-cols-4.gap-2.m-8
|
||||
- @section.cards.each_with_index do |card , index|
|
||||
.relative.block.border.border-gray-100
|
||||
@ -20,7 +21,6 @@
|
||||
%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) )
|
||||
= green_button( "New" , "/index" )
|
||||
= red_button( "Delete" , card_remove_path(card.id) )
|
||||
.p-4
|
||||
%h3.mt-4.text-lg.font-bold Image
|
||||
@ -47,3 +47,5 @@
|
||||
.relative.block.border.border-gray-100
|
||||
%h3.mt-4.text-lg.font-bold Options
|
||||
To be done
|
||||
%p
|
||||
= green_button( "New Card" , new_section_card_url(@section.id) )
|
||||
|
@ -52,6 +52,8 @@
|
||||
.text-sm "#{card.text[0..70]} ....."
|
||||
%p.p-3
|
||||
= yellow_button( "View and Edit Cards" , section_cards_url(@section.id))
|
||||
= green_button( "New Card" , new_section_card_url(@section.id) )
|
||||
|
||||
.relative.block.border.border-gray-100
|
||||
%h3.mt-4.text-lg.font-bold Options
|
||||
To be done
|
||||
|
Reference in New Issue
Block a user