Sha256: f5cfadc21b65de10aaf8b4bf8b5d44b081c9ca2ebca6cc999510b08cf5a28931
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
%h1 Change Password .form = form_for @user do |f| -if @user.errors.any? #errorExplanation %h2= "#{pluralize(@user.errors.count, "error")} prohibited this change:" %ul - @user.errors.full_messages.each do |msg| %li= msg .field .fieldName= label_tag "Please enter your old 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" :css .extra_form_data { display: none; } = content_for :head do = javascript_include_tag %w(jquery.validate jquery-validate/additional-methods.js) :javascript var checkingPassword = true; $(function(){ $('form').validate({onkeyup: function(element) {}}); $('#old_password').rules("add", {verify_user : true, alphanumeric: true}) });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wheels-0.1.30 | app/views/users/change_password.html.haml |