2021-04-19 12:09:04 +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
|
2021-04-19 12:09:04 +00:00
|
|
|
= f.label _('New password'), for: "user_password"
|
2021-10-18 18:11:13 +00:00
|
|
|
= f.password_field :password, autocomplete: 'new-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
|
2021-04-19 12:09:04 +00:00
|
|
|
= f.label _('Confirm new password'), for: "user_password_confirmation"
|
2021-10-18 18:11:13 +00:00
|
|
|
= f.password_field :password_confirmation, autocomplete: 'new-password', 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-04-19 12:09:04 +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
|
2021-04-19 12:09:04 +00:00
|
|
|
%span.light= _("Didn't receive a confirmation email?")
|
|
|
|
= link_to _("Request a new one"), new_confirmation_path(:user)
|
2016-09-09 12:21:00 +00:00
|
|
|
= render 'devise/shared/sign_in_link'
|