direct image edit links
This commit is contained in:
parent
e7c6ea90f7
commit
8d650a82cc
@ -43,6 +43,7 @@
|
||||
= card.image.aspect_ratio
|
||||
= image_for( card , "mb-4")
|
||||
= green_button("Change Image" , merged.images_path(card_id: card.id) )
|
||||
= blue_button("Edit Image" , merged.image_path(card.image.id) )
|
||||
= red_button("Remove image", merged.card_set_image_path( card.id , image: "") )
|
||||
-else
|
||||
%h3.mt-4.text-lg.font-bold No image
|
||||
|
@ -31,6 +31,7 @@
|
||||
%h3.text-lg.font-bold No Image
|
||||
.flex
|
||||
.mt-3= green_button("Change Image", merged.images_path(section_id: @section.id))
|
||||
.mt-3= blue_button("Edit Image" , merged.image_path(@section.image.id) ) if( @section.image )
|
||||
.mt-3= red_button( "Remove image", merged.section_set_image_path( @section.id , image: "")) if( @section.image )
|
||||
|
||||
.basis-80.grow.content_update
|
||||
|
Loading…
Reference in New Issue
Block a user