hubfeenix.fi/app/views/profiles/_form.html.haml
2023-01-16 01:11:05 +02:00

15 lines
446 B
Plaintext

= simple_form_for @profile do |f|
= f.error_notification
= 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.justify-between.mt-4
%button.bg-cyan-200{class: button_classes}
= f.submit 'Save'
%button.bg-cyan-200{class: button_classes}
= link_to 'Cancel', member_path(current_member)