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
|
2014-02-17 11:30:50 -05:00
|
|
|
Please set a new password before proceeding.
|
2014-02-11 02:37:55 -05:00
|
|
|
%br
|
2014-02-17 11:30:50 -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
|
2018-04-12 19:16:56 -04:00
|
|
|
= f.label :current_password, class: 'col-form-label col-sm-2'
|
2015-02-13 07:33:28 -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
|
2018-04-12 19:16:56 -04:00
|
|
|
= f.label :password, class: 'col-form-label col-sm-2'
|
2015-01-15 08:02:09 -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
|
2018-04-12 19:16:56 -04:00
|
|
|
= f.label :password_confirmation, class: 'col-form-label col-sm-2'
|
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'
|