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
|
|
|
|
= f.input :bio
|
2023-01-16 00:11:05 +01:00
|
|
|
= f.input :kind, :as => :hidden
|
2023-01-15 23:17:22 +01:00
|
|
|
= f.input :picture , as: :file , label: (@profile.picture.blank? ? "Add picture" : "Change picture (optional)")
|
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)
|