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.
|
2014-02-11 02:37:55 -05:00
|
|
|
-if @user.errors.any?
|
|
|
|
.alert.alert-danger
|
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
2013-06-13 12:53:04 -04:00
|
|
|
|
2014-07-29 08:28:20 -04:00
|
|
|
.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'
|
2014-10-22 21:39:02 -04:00
|
|
|
.col-sm-10= f.password_field :password, required: true, class: 'form-control', id: 'user_password_profile'
|
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"
|