2013-06-13 17:16:48 +00:00
|
|
|
= form_for @user, url: profile_password_path, method: :post do |f|
|
|
|
|
.light-well.padded
|
|
|
|
%p.slead
|
|
|
|
Please set new password before proceed.
|
|
|
|
%br
|
|
|
|
After successful password update you will be redirected to login screen
|
2013-06-13 16:53:04 +00:00
|
|
|
-if @user.errors.any?
|
2013-12-31 14:34:14 +00:00
|
|
|
.alert.alert-danger
|
2013-06-13 16:53:04 +00:00
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
2013-12-30 23:27:02 +00:00
|
|
|
.form-group
|
2013-06-13 16:53:04 +00:00
|
|
|
= f.label :password
|
2013-12-30 23:27:02 +00:00
|
|
|
.col-sm-10= f.password_field :password, required: true
|
|
|
|
.form-group
|
2013-06-13 16:53:04 +00:00
|
|
|
= f.label :password_confirmation
|
2013-12-30 23:27:02 +00:00
|
|
|
.col-sm-10
|
2013-06-13 16:53:04 +00:00
|
|
|
= f.password_field :password_confirmation, required: true
|
2013-12-30 23:27:02 +00:00
|
|
|
.form-group
|
|
|
|
.col-sm-10
|
2013-06-13 17:16:48 +00:00
|
|
|
= f.submit 'Set new password', class: "btn btn-create"
|