2019-02-08 14:00:30 +00:00
|
|
|
- page_title _('New Password')
|
|
|
|
- breadcrumb_title _('New Password')
|
|
|
|
|
|
|
|
%h3.page-title= _('Set up new password')
|
2014-02-11 07:37:55 +00:00
|
|
|
%hr
|
2018-04-12 20:11:22 +00:00
|
|
|
= form_for @user, url: profile_password_path, method: :post do |f|
|
2014-02-11 07:37:55 +00:00
|
|
|
%p.slead
|
2019-02-18 11:26:36 +00:00
|
|
|
= _('Please set a new password before proceeding.')
|
2014-02-11 07:37:55 +00:00
|
|
|
%br
|
2019-02-18 11:26:36 +00:00
|
|
|
= _('After a successful password update you will be redirected to login screen.')
|
2016-04-05 01:25:38 +00:00
|
|
|
|
|
|
|
= form_errors(@user)
|
2015-09-09 21:05:47 +00:00
|
|
|
|
2015-02-13 12:33:28 +00:00
|
|
|
- unless @user.password_automatically_set?
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
2019-05-29 02:48:00 +00:00
|
|
|
= f.label :current_password, _('Current password')
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-10
|
2021-01-27 12:09:01 +00:00
|
|
|
= f.password_field :current_password, required: true, class: 'form-control gl-form-input'
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
2019-05-30 02:44:25 +00:00
|
|
|
= f.label :password, _('New password')
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-10
|
2021-01-27 12:09:01 +00:00
|
|
|
= f.password_field :password, required: true, class: 'form-control gl-form-input'
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
2019-05-29 02:48:00 +00:00
|
|
|
= f.label :password_confirmation, _('Password confirmation')
|
2014-02-11 07:37:55 +00:00
|
|
|
.col-sm-10
|
2021-01-27 12:09:01 +00:00
|
|
|
= f.password_field :password_confirmation, required: true, class: 'form-control gl-form-input'
|
2014-02-11 07:37:55 +00:00
|
|
|
.form-actions
|
2021-03-17 18:09:01 +00:00
|
|
|
= f.submit _('Set new password'), class: 'gl-button btn btn-confirm'
|