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