Commit faafde2d2b8dc3457c45aa87e6dd280bfdd13dde

Authored by Dmitriy Zaporozhets
1 parent 1af84f8c

Fix new password page UI

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 21 additions and 21 deletions   Show diff stats
app/views/profiles/passwords/new.html.haml
1 -= form_for @user, url: profile_password_path, method: :post do |f|  
2 - .light-well.padded  
3 - %p.slead  
4 - Please set new password before proceed.  
5 - %br  
6 - After successful password update you will be redirected to login screen  
7 - -if @user.errors.any?  
8 - .alert.alert-danger  
9 - %ul  
10 - - @user.errors.full_messages.each do |msg|  
11 - %li= msg 1 +%h3.page-title Setup new password
  2 +%hr
  3 += form_for @user, url: profile_password_path, method: :post, html: { class: 'form-horizontal '} do |f|
  4 + %p.slead
  5 + Please set new password before proceed.
  6 + %br
  7 + After successful password update you will be redirected to login screen
  8 + -if @user.errors.any?
  9 + .alert.alert-danger
  10 + %ul
  11 + - @user.errors.full_messages.each do |msg|
  12 + %li= msg
12 13
13 - .form-group  
14 - = f.label :password  
15 - .col-sm-10= f.password_field :password, required: true  
16 - .form-group  
17 - = f.label :password_confirmation  
18 - .col-sm-10  
19 - = f.password_field :password_confirmation, required: true  
20 - .form-group  
21 - .col-sm-10  
22 - = f.submit 'Set new password', class: "btn btn-create" 14 + .form-group
  15 + = f.label :password, class: 'control-label'
  16 + .col-sm-10= f.password_field :password, required: true, class: 'form-control'
  17 + .form-group
  18 + = f.label :password_confirmation, class: 'control-label'
  19 + .col-sm-10
  20 + = f.password_field :password_confirmation, required: true, class: 'form-control'
  21 + .form-actions
  22 + = f.submit 'Set new password', class: "btn btn-create"