retrospring/app/views/devise/passwords/edit.html.haml

20 lines
759 B
Text
Raw Normal View History

2020-05-10 13:45:48 +02:00
- provide(:title, generate_title('Reset Password'))
2014-08-01 17:40:48 +02:00
.container
2020-05-06 21:56:10 +02:00
.row
.col-sm-4.offset-sm-4
.card.mt-3
.card-body
%h1 Change your password
2022-09-07 21:41:42 +02:00
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }, data: { turbo: false }) do |f|
2020-05-22 23:33:30 +02:00
= render 'devise/shared/error_messages', resource: resource
2014-08-01 17:40:48 +02:00
2020-05-06 21:56:10 +02:00
= f.hidden_field :reset_password_token
2014-08-01 17:40:48 +02:00
2020-05-10 22:27:39 +02:00
= f.password_field :password, autofocus: true, autocomplete: :off, label: 'New password'
= f.password_field :password_confirmation, autocomplete: :off, label: 'Confirm new password'
2014-08-01 17:40:48 +02:00
2020-05-10 13:45:48 +02:00
= f.submit 'Change my password'
2014-08-01 17:40:48 +02:00
2020-05-10 13:45:48 +02:00
= render 'devise/shared/links'
= render 'shared/links'