Sha256: 196f17985e6d7ba4fb55b1778b1762cd6c93e65893eeae8ffcdb53b6a62c2dd1

Contents?: true

Size: 1.49 KB

Versions: 4

Compression:

Stored size: 1.49 KB

Contents

%h1 Update your personal info:

.form
  = form_for resource do |f|
    -if resource.errors.any?
      #errorExplanation
        %h2= "#{pluralize(resource.errors.count, "error")} prohibited this change:"
        %ul
          - resource.errors.full_messages.each do |msg|
            %li= msg

    .fieldGroup
      = f.fields_for :profile do |pf|
        .field
          .fieldName= pf.label :first_name
          .fieldValue= pf.text_field :first_name
        .field
          .fieldName= pf.label :last_name
          .fieldValue= pf.text_field :last_name
        .field
          .fieldName= f.label :email
          .fieldValue= f.text_field :email
        .field
          .fieldName= pf.label :phone
          .fieldValue= pf.text_field :phone
        .field
          .fieldName= label_tag "Company / Organization"
          .fieldValue= pf.text_field :company
        .field
          .fieldName= pf.label :position
          .fieldValue= pf.text_field :position
    .field
      .fieldName= label_tag "Please enter your password for verification:"
      .fieldValue= f.password_field :old_password, :id=>"old_password"
    .submit= f.submit "Update Account"

: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

4 entries across 4 versions & 1 rubygems

Version Path
wheels-0.1.19 app/views/users/edit.html.haml
wheels-0.1.18 app/views/users/edit.html.haml
wheels-0.1.17 app/views/users/edit.html.haml
wheels-0.1.16 app/views/users/edit.html.haml