2021-04-05 06:09:10 +00:00
|
|
|
= render 'devise/shared/tab_single', tab_title: 'Change your password'
|
2014-08-15 14:52:20 +00:00
|
|
|
.login-box
|
|
|
|
.login-body
|
2017-12-05 09:01:46 +00:00
|
|
|
= form_for(resource, as: resource_name, url: password_path(:user), html: { method: :put, class: 'gl-show-field-errors' }) do |f|
|
2014-07-11 13:05:57 +00:00
|
|
|
.devise-errors
|
2019-05-21 16:56:27 +00:00
|
|
|
= render "devise/shared/error_messages", resource: resource
|
2014-07-11 13:05:57 +00:00
|
|
|
= f.hidden_field :reset_password_token
|
2016-09-09 12:21:00 +00:00
|
|
|
.form-group
|
2017-05-16 12:13:56 +00:00
|
|
|
= f.label 'New password', for: "user_password"
|
2021-01-27 12:09:01 +00:00
|
|
|
= f.password_field :password, class: "form-control gl-form-input top", required: true, title: 'This field is required', data: { qa_selector: 'password_field'}
|
2016-09-09 12:21:00 +00:00
|
|
|
.form-group
|
2017-05-16 12:13:56 +00:00
|
|
|
= f.label 'Confirm new password', for: "user_password_confirmation"
|
2021-01-27 12:09:01 +00:00
|
|
|
= f.password_field :password_confirmation, class: "form-control gl-form-input bottom", title: 'This field is required', data: { qa_selector: 'password_confirmation_field' }, required: true
|
2015-02-05 14:56:58 +00:00
|
|
|
.clearfix
|
2021-01-27 21:09:12 +00:00
|
|
|
= f.submit "Change your password", class: "gl-button btn btn-confirm", data: { qa_selector: 'change_password_button' }
|
2015-02-05 14:56:58 +00:00
|
|
|
|
|
|
|
.clearfix.prepend-top-20
|
|
|
|
%p
|
2016-09-09 12:21:00 +00:00
|
|
|
%span.light Didn't receive a confirmation email?
|
2017-12-05 09:01:46 +00:00
|
|
|
= link_to "Request a new one", new_confirmation_path(:user)
|
2016-09-09 12:21:00 +00:00
|
|
|
= render 'devise/shared/sign_in_link'
|