hubfeenix.fi/app/views/profiles/_form.html.haml

19 lines
679 B
Plaintext
Raw Normal View History

2023-01-15 23:17:22 +01:00
= simple_form_for @profile do |f|
2023-01-15 13:52:40 +01:00
= f.error_notification
= f.input :name
2023-01-22 19:50:57 +01:00
= render "merged/form/editor" , object: @profile , field: :bio, form: f
2023-01-16 00:11:05 +01:00
= f.input :kind, :as => :hidden
2023-01-22 19:40:28 +01:00
.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
2023-01-15 13:52:40 +01:00
.flex.justify-between.mt-4
%button.bg-cyan-200{class: button_classes}
= f.submit 'Save'
%button.bg-cyan-200{class: button_classes}
2023-01-16 00:11:05 +01:00
= link_to 'Cancel', member_path(current_member)