2021-04-29 21:17:54 +05:30
|
|
|
= render 'devise/shared/tab_single', tab_title: _('Change your password')
|
2015-04-26 12:48:37 +05:30
|
|
|
.login-box
|
|
|
|
.login-body
|
2022-08-13 15:12:31 +05:30
|
|
|
= form_for(resource, as: resource_name, url: password_path(:user), html: { method: :put, class: 'gl-show-field-errors gl-pt-5' }) do |f|
|
|
|
|
.devise-errors.gl-px-5
|
2019-09-04 21:01:54 +05:30
|
|
|
= render "devise/shared/error_messages", resource: resource
|
2014-09-02 18:07:02 +05:30
|
|
|
= f.hidden_field :reset_password_token
|
2022-08-13 15:12:31 +05:30
|
|
|
.form-group.gl-px-5
|
2021-04-29 21:17:54 +05:30
|
|
|
= f.label _('New password'), for: "user_password"
|
2022-08-13 15:12:31 +05:30
|
|
|
= f.password_field :password, autocomplete: 'new-password', class: "form-control gl-form-input top js-password-complexity-validation", required: true, title: _('This field is required.'), data: { qa_selector: 'password_field'}
|
|
|
|
= render_if_exists 'shared/password_requirements_list'
|
|
|
|
.form-group.gl-px-5
|
2021-04-29 21:17:54 +05:30
|
|
|
= f.label _('Confirm new password'), for: "user_password_confirmation"
|
2021-11-18 22:05:49 +05:30
|
|
|
= 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
|
2022-08-13 15:12:31 +05:30
|
|
|
.clearfix.gl-px-5.gl-pb-5
|
2021-04-29 21:17:54 +05:30
|
|
|
= f.submit _("Change your password"), class: "gl-button btn btn-confirm", data: { qa_selector: 'change_password_button' }
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
.clearfix.prepend-top-20
|
|
|
|
%p
|
2021-04-29 21:17:54 +05:30
|
|
|
%span.light= _("Didn't receive a confirmation email?")
|
|
|
|
= link_to _("Request a new one"), new_confirmation_path(:user)
|
2016-11-03 12:29:30 +05:30
|
|
|
= render 'devise/shared/sign_in_link'
|