Commit faafde2d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix new password page UI

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 1af84f8c
= form_for @user, url: profile_password_path, method: :post do |f| %h3.page-title Setup new password
.light-well.padded %hr
%p.slead = form_for @user, url: profile_password_path, method: :post, html: { class: 'form-horizontal '} do |f|
Please set new password before proceed. %p.slead
%br Please set new password before proceed.
After successful password update you will be redirected to login screen %br
-if @user.errors.any? After successful password update you will be redirected to login screen
.alert.alert-danger -if @user.errors.any?
%ul .alert.alert-danger
- @user.errors.full_messages.each do |msg| %ul
%li= msg - @user.errors.full_messages.each do |msg|
%li= msg
.form-group .form-group
= f.label :password = f.label :password, class: 'control-label'
.col-sm-10= f.password_field :password, required: true .col-sm-10= f.password_field :password, required: true, class: 'form-control'
.form-group .form-group
= f.label :password_confirmation = f.label :password_confirmation, class: 'control-label'
.col-sm-10 .col-sm-10
= f.password_field :password_confirmation, required: true = f.password_field :password_confirmation, required: true, class: 'form-control'
.form-group .form-actions
.col-sm-10 = f.submit 'Set new password', class: "btn btn-create"
= f.submit 'Set new password', class: "btn btn-create"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment