Files
growstuff/app/views/devise/registrations/_edit_profile.html.haml
T
Brenda WallaceandClaude Sonnet 5 92f3f0cc36 Convert Bootstrap 3 horizontal forms to Bootstrap 5
The label-beside-input forms (label col-md-2, input col-md-8) relied on
form-horizontal and form-group acting as a row. Each field wrapper is now a real
.row.mb-3, labels are col-form-label, help text is form-text, and the leftover
form-horizontal and form-actions classes, which do nothing in Bootstrap 5, are
dropped.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 18:03:36 +12:00

59 lines
2.1 KiB
Plaintext

= form_for(resource, as: resource_name,
url: registration_path(resource_name) + '#profile',
html: { method: :put }) do |f|
%br/
= render 'devise/shared/error_messages', resource: resource
.row.mb-3
= f.label :location, 'Your location', class: 'col-form-label col-md-2'
.col-md-8
= f.text_field :location, autocomplete: "off", class: 'form-control'
%span.form-text This will be displayed on a map. You can be as detailed or vague as you like.
.row.mb-3
= f.label :bio, class: 'col-form-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"
.row.mb-3
= f.label :website_url, 'Website', class: 'col-form-label col-md-2'
.col-md-8
= f.url_field :website_url, class: 'form-control', placeholder: "https://you.example.com/"
.row.mb-3
= f.label :instagram_handle, 'Instagram', class: 'col-form-label col-md-2'
.col-md-8
= f.text_field :instagram_handle, class: 'form-control', placeholder: 'your_handle'
.row.mb-3
= f.label :facebook_handle, 'Facebook', class: 'col-form-label col-md-2'
.col-md-8
= f.text_field :facebook_handle, class: 'form-control', placeholder: 'your_handle'
.row.mb-3
= f.label :bluesky_handle, 'Bluesky', class: 'col-form-label col-md-2'
.col-md-8
= f.text_field :bluesky_handle, class: 'form-control', placeholder: 'your_handle'
.row.mb-3
= f.label :other_url, 'Other URL', class: 'col-form-label col-md-2'
.col-md-8
= f.url_field :other_url, class: 'form-control', placeholder: "https://you.example.com/"
.row.mb-3
%label.form-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/"
.row.mb-3
.offset-md-2.col-md-8
= f.submit "Save", class: 'btn btn-primary'
= f.hidden_field(:tos_agreement, value: true)