summaryrefslogtreecommitdiff
path: root/app/views/profile/password.html.haml
blob: f77d3855364ba16ad8a3d725402b959924266452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%p Note: after success password update you will be redirected to login page where you should login with new password
= form_for @user, :url => profile_password_path, :method => :put do |f|
  -if @user.errors.any?
    #error_explanation
      %h2= "#{pluralize(@user.errors.count, "error")} prohibited this password from being saved:"
      %ul
        - @user.errors.full_messages.each do |msg|
          %li= msg

  .div
    = f.label :password
    %br
    = f.password_field :password
  .div
    = f.label :password_confirmation
    %br
    = f.password_field :password_confirmation
  .actions
    = f.submit 'Save', :class => "lbutton vm"