mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-18 22:58:32 -05:00
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
= form_for(resource, as: resource_name,
|
|
url: registration_path(resource_name) + '#profile',
|
|
html: { method: :put, class: 'form-horizontal' }) do |f|
|
|
%br/
|
|
= render 'devise/shared/error_messages', resource: resource
|
|
|
|
.form-group
|
|
= f.label :location, 'Your location', class: 'control-label col-md-2'
|
|
.col-md-8
|
|
= f.text_field :location, autocomplete: "off", class: 'form-control'
|
|
%span.help-block This will be displayed on a map. You can be as detailed or vague as you like.
|
|
|
|
.form-group
|
|
= f.label :bio, class: 'control-label col-md-2'
|
|
.col-md-8
|
|
= f.text_area :bio, rows: 6, class: 'form-control'
|
|
|
|
.form-group
|
|
%label.control-label.col-md-2
|
|
Profile picture
|
|
.col-md-8
|
|
= render partial: "members/avatar", locals: { member: @member }
|
|
- unless @member.preferred_avatar_uri.present?
|
|
%p
|
|
%br/
|
|
To change your profile picture, visit
|
|
= succeed "." do
|
|
= link_to 'gravatar.com', "https://gravatar.com/"
|
|
|
|
.form-group
|
|
.form-actions.col-md-offset-2.col-md-8
|
|
= f.submit "Save", class: 'btn btn-primary'
|
|
= f.hidden_field(:tos_agreement, value: true)
|