Fix new password page UI

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-02-11 09:37:55 +02:00
parent 1af84f8ceb
commit faafde2d2b
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 21 additions and 21 deletions

View File

@ -1,22 +1,22 @@
= 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
-if @user.errors.any?
.alert.alert-danger
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
%h3.page-title Setup new password
%hr
= form_for @user, url: profile_password_path, method: :post, html: { class: 'form-horizontal '} do |f|
%p.slead
Please set new password before proceed.
%br
After successful password update you will be redirected to login screen
-if @user.errors.any?
.alert.alert-danger
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
.form-group
= f.label :password
.col-sm-10= f.password_field :password, required: true
.form-group
= f.label :password_confirmation
.col-sm-10
= f.password_field :password_confirmation, required: true
.form-group
.col-sm-10
= f.submit 'Set new password', class: "btn btn-create"
.form-group
= f.label :password, class: 'control-label'
.col-sm-10= f.password_field :password, required: true, class: 'form-control'
.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"