card image selection

This commit is contained in:
2022-12-19 09:53:25 +02:00
parent 5654bb0743
commit 5d4da2c032
5 changed files with 11 additions and 9 deletions

View File

@ -22,10 +22,9 @@
=submit_button( "Delete" , true)
.p-4
%h3.mt-4.text-lg.font-bold Image
= yellow_button("Change Image" , card_select_image_url(card.id) )
= yellow_button("Change Image" , images_url(card_id: card.id) )
= red_button("Remove image", card_set_image_path( card.id , image: "") )
.basis-96
%h3.mt-4.text-lg.font-bold Image
-if( card.image.blank? )