2015-05-01 04:39:11 -04:00
|
|
|
- page_title "New Password"
|
|
|
|
- header_title "New Password"
|
2014-02-11 02:37:55 -05:00
|
|
|
%h3.page-title Setup new password
|
|
|
|
%hr
|
|
|
|
= form_for @user, url: profile_password_path, method: :post, html: { class: 'form-horizontal '} do |f|
|
|
|
|
%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?
|
|
|
|
.form-group
|
|
|
|
= f.label :current_password, class: 'control-label'
|
|
|
|
.col-sm-10= f.password_field :current_password, required: true, class: 'form-control'
|
2014-10-23 18:49:48 -04:00
|
|
|
.form-group
|
2014-02-11 02:37:55 -05:00
|
|
|
= f.label :password, class: 'control-label'
|
2015-01-15 08:02:09 -05:00
|
|
|
.col-sm-10= f.password_field :password, required: true, class: 'form-control'
|
2014-02-11 02:37:55 -05:00
|
|
|
.form-group
|
|
|
|
= f.label :password_confirmation, class: 'control-label'
|
|
|
|
.col-sm-10
|
|
|
|
= f.password_field :password_confirmation, required: true, class: 'form-control'
|
|
|
|
.form-actions
|
|
|
|
= f.submit 'Set new password', class: "btn btn-create"
|