app/views/users/edit.html.haml in wheels-0.1.15 vs app/views/users/edit.html.haml in wheels-0.1.16

- old
+ new

@@ -1,6 +1,6 @@ -%h1 Change Your Password +%h1 Update your personal info: .form = form_for resource do |f| -if resource.errors.any? #errorExplanation @@ -8,11 +8,10 @@ %ul - resource.errors.full_messages.each do |msg| %li= msg .fieldGroup - .fieldGroupTitle Edit your personal info = f.fields_for :profile do |pf| .field .fieldName= pf.label :first_name .fieldValue= pf.text_field :first_name .field @@ -28,29 +27,21 @@ .fieldName= label_tag "Company / Organization" .fieldValue= pf.text_field :company .field .fieldName= pf.label :position .fieldValue= pf.text_field :position - .fieldGroup - .fieldGroupTitle Change your password .field - .fieldName= label_tag "Old Password:" + .fieldName= label_tag "Please enter your password for verification:" .fieldValue= f.password_field :old_password, :id=>"old_password" - .field - .fieldName= label_tag "New Password:" - .fieldValue= f.password_field :password, :id=>"password" - .field - .fieldName= label_tag "Confirm Password:" - .fieldalue= f.password_field :password_confirmation - .submit= f.submit "Change Password" + .submit= f.submit "Update Account" :css .extra_form_data { display: none; } = content_for :head do - = javascript_include_tag %w(jquery.validate jquery-validate/extra-methods.js) + = javascript_include_tag %w(jquery.validate jquery-validate/additional-methods.js) :javascript var checkingPassword = true; $(function(){