Files
growstuff/app/views/devise/registrations/_edit_password.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

26 lines
844 B
Plaintext

= form_for(resource, as: resource_name,
url: registration_path(resource_name) + '#password',
html: { method: :put }) do |f|
%br/
= render 'devise/shared/error_messages', resource: resource
.row.mb-3
= f.label :current_password, class: 'col-form-label col-md-2'
.col-md-4
= f.password_field :current_password, class: 'form-control'
.row.mb-3
= f.label :password, "New password", class: 'col-form-label col-md-2'
.col-md-4
= f.password_field :password, autocomplete: "off", class: 'form-control'
.row.mb-3
= f.label :password_confirmation, class: 'col-form-label col-md-2'
.col-md-4= f.password_field :password_confirmation, class: 'form-control'
.row.mb-3
.offset-md-2.col-md-8
= f.submit "Save", class: 'btn btn-primary'
= f.hidden_field(:tos_agreement, value: true)