sarting to generalize profiles
This commit is contained in:
13
app/views/profiles/_form.html.haml
Normal file
13
app/views/profiles/_form.html.haml
Normal file
@ -0,0 +1,13 @@
|
||||
= simple_form_for @profile do |f|
|
||||
= f.error_notification
|
||||
|
||||
= f.input :name
|
||||
= f.input :bio
|
||||
= 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', profiles_path
|
Reference in New Issue
Block a user