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>
16 lines
572 B
Plaintext
16 lines
572 B
Plaintext
= form_for(resource, as: resource_name,
|
|
url: registration_path(resource_name) + '#delete',
|
|
html: { method: :delete }) do |f|
|
|
%br/
|
|
= render 'devise/shared/error_messages', resource: resource
|
|
|
|
%p Delete your account from #{ENV['GROWSTUFF_SITE_NAME']}.
|
|
.row.mb-3
|
|
= f.label :current_password, "Password required to delete", class: 'col-form-label col-md-2'
|
|
.col-md-4
|
|
= f.password_field :current_password, class: 'form-control', id: 'current_pw_for_delete'
|
|
|
|
.row.mb-3
|
|
.offset-md-2.col-md-8
|
|
= f.submit "Delete", class: 'btn btn-danger'
|