mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 11:21:06 -04:00
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>
26 lines
844 B
Plaintext
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)
|