new.html.haml 692 Bytes
= 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-error
        %ul
          - @user.errors.full_messages.each do |msg|
            %li= msg

    .clearfix
      = f.label :password
      .input= f.password_field :password, required: true
    .clearfix
      = f.label :password_confirmation
      .input
        = f.password_field :password_confirmation, required: true
    .clearfix
      .input
        = f.submit 'Set new password', class: "btn btn-create"