fix card no image
This commit is contained in:
parent
b7251ef135
commit
2974b43bde
@ -22,6 +22,7 @@
|
|||||||
Changes
|
Changes
|
||||||
|
|
||||||
.flex.items-center.gap-16
|
.flex.items-center.gap-16
|
||||||
|
= link_to merged.changes_index_path do
|
||||||
%button.my-3{class: last_change_class}= last_change_text
|
%button.my-3{class: last_change_class}= last_change_text
|
||||||
|
|
||||||
= form_tag( main_app.destroy_member_session_path , {method: :delete } ) do
|
= form_tag( main_app.destroy_member_session_path , {method: :delete } ) do
|
||||||
|
@ -38,15 +38,16 @@
|
|||||||
= green_button("Change Image" , merged.images_path(card_id: card.id) )
|
= green_button("Change Image" , merged.images_path(card_id: card.id) )
|
||||||
= red_button("Remove image", merged.card_set_image_path( card.id , image: "") )
|
= red_button("Remove image", merged.card_set_image_path( card.id , image: "") )
|
||||||
-else
|
-else
|
||||||
%h3.text-lg.font-bold No image
|
%h3.mt-4.text-lg.font-bold No image
|
||||||
|
%button.my-3.bg-cyan-200{class: button_classes} Add Image
|
||||||
.basis-72.grow
|
.basis-72.grow
|
||||||
= form_tag( merged.card_path(card.id) , {method: :patch , class: "mx-auto mb-0 max-w space-y-4" } ) do
|
= form_tag( merged.card_path(card.id) , {method: :patch , class: "mx-auto mb-0 max-w space-y-4" } ) do
|
||||||
%label.block
|
%label.block
|
||||||
.text-lg.font-bold Header
|
.text-lg.font-bold Header
|
||||||
= text_field_tag( :header , card.header, class: "block w-full rounded-lg border-gray-200 p-4 pr-12 text-sm shadow-sm")
|
= text_field_tag( :header , card.header, class: "mt-2 block w-full rounded-lg border-gray-200 p-4 pr-12 text-sm shadow-sm")
|
||||||
%label.block
|
%label.block
|
||||||
.mt-4.text-lg.font-bold Text
|
.mt-4.text-lg.font-bold Text
|
||||||
= text_area_tag( :text , card.text, rows: 5 , class: "w-full rounded-lg border-gray-200 p-4 pr-12 text-sm shadow-sm" )
|
= text_area_tag( :text , card.text, rows: 5 , class: "mt-2 w-full rounded-lg border-gray-200 p-4 pr-12 text-sm shadow-sm" )
|
||||||
=submit_button( "Update Texts")
|
=submit_button( "Update Texts")
|
||||||
|
|
||||||
.basis-72.grow
|
.basis-72.grow
|
||||||
|
Loading…
Reference in New Issue
Block a user