mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 18:56:06 -04:00
59 lines
2.2 KiB
Plaintext
59 lines
2.2 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', placeholder: "I'm am XYZ gardener interested in A, B, C"
|
|
|
|
.form-group
|
|
= f.label :website_url, 'Website', class: 'control-label col-md-2'
|
|
.col-md-8
|
|
= f.url_field :website_url, class: 'form-control', placeholder: "https://you.example.com/"
|
|
|
|
.form-group
|
|
= f.label :instagram_handle, 'Instagram', class: 'control-label col-md-2'
|
|
.col-md-8
|
|
= f.text_field :instagram_handle, class: 'form-control', placeholder: 'your_handle'
|
|
|
|
.form-group
|
|
= f.label :facebook_handle, 'Facebook', class: 'control-label col-md-2'
|
|
.col-md-8
|
|
= f.text_field :facebook_handle, class: 'form-control', placeholder: 'your_handle'
|
|
|
|
.form-group
|
|
= f.label :bluesky_handle, 'Bluesky', class: 'control-label col-md-2'
|
|
.col-md-8
|
|
= f.text_field :bluesky_handle, class: 'form-control', placeholder: 'your_handle'
|
|
|
|
.form-group
|
|
= f.label :other_url, 'Other URL', class: 'control-label col-md-2'
|
|
.col-md-8
|
|
= f.url_field :other_url, class: 'form-control', placeholder: "https://you.example.com/"
|
|
|
|
.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)
|