picture cache for forms
This commit is contained in:
@ -4,7 +4,11 @@
|
||||
= f.input :name
|
||||
= f.input :bio
|
||||
= f.input :kind, :as => :hidden
|
||||
= f.input :picture , as: :file , label: (@profile.picture.blank? ? "Add picture" : "Change picture (optional)")
|
||||
.flex.h-16.mt-2
|
||||
= image_tag(@profile.picture_url , class: "align-middle mr-2") if @profile.picture?
|
||||
= f.input :picture , as: :file , input_html: {wrapper_class: "w-full"},
|
||||
label: (@profile.picture.blank? ? "Add picture" : "Change picture")
|
||||
= f.hidden_field :picture_cache
|
||||
|
||||
.flex.justify-between.mt-4
|
||||
%button.bg-cyan-200{class: button_classes}
|
||||
|
Reference in New Issue
Block a user