fix card no image
This commit is contained in:
parent
b7251ef135
commit
2974b43bde
@ -22,7 +22,8 @@
|
||||
Changes
|
||||
|
||||
.flex.items-center.gap-16
|
||||
%button.my-3{class: last_change_class}= last_change_text
|
||||
= link_to merged.changes_index_path do
|
||||
%button.my-3{class: last_change_class}= last_change_text
|
||||
|
||||
= form_tag( main_app.destroy_member_session_path , {method: :delete } ) do
|
||||
%button.flex.w-full.items-center.gap-2.rounded-lg.px-4.py-2.text-sm.text-blue-700.hover:bg-red-50{:role => "menuitem", :type => "submit"}
|
||||
|
@ -38,15 +38,16 @@
|
||||
= green_button("Change Image" , merged.images_path(card_id: card.id) )
|
||||
= red_button("Remove image", merged.card_set_image_path( card.id , image: "") )
|
||||
-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
|
||||
= form_tag( merged.card_path(card.id) , {method: :patch , class: "mx-auto mb-0 max-w space-y-4" } ) do
|
||||
%label.block
|
||||
.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
|
||||
.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")
|
||||
|
||||
.basis-72.grow
|
||||
|
Loading…
Reference in New Issue
Block a user