summaryrefslogtreecommitdiff
path: root/app/views/profile/password.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/profile/password.html.haml')
-rw-r--r--app/views/profile/password.html.haml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/profile/password.html.haml b/app/views/profile/password.html.haml
new file mode 100644
index 00000000000..f77d3855364
--- /dev/null
+++ b/app/views/profile/password.html.haml
@@ -0,0 +1,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"
+