Sha256: b9cd8ad0c47a92bcb24dfb7ab3d413eab7a9b667701a86316e001d9d3f934927

Contents?: true

Size: 776 Bytes

Versions: 26

Compression:

Stored size: 776 Bytes

Contents

- include_ckeditor
= render :partial => "child_pages_links"

- if params[:action]=="new"
  = form_for resource, :remote=>true do |f|
    = render :partial => "form_fields", :locals=>{:f=>f}
- else
  = form_for form_object, {:url=>form_url, :remote=>true} do |f|
    = render :partial => "form_fields", :locals=>{:f=>f}

= content_for :head do
  = javascript_include_tag 'jquery-validate/jquery.validate.pack'

:javascript
  $(function(){
  jQuery.validator.addMethod("verify_user", function(value, element, params) {
  //alert($(element).attr('data-verify-user-path'));
  xhr = $.ajax({
  async: false,
  url: $(element).attr('data-verify-user-path')+ '?password='+value
  });
  return xhr.responseText=="true";
  }, "Password is incorrect.");

  $('form').validate();
  });

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
wheels-0.1.25 app/views/pages/_form.html.haml
wheels-0.1.24 app/views/pages/_form.html.haml
wheels-0.1.23 app/views/pages/_form.html.haml
wheels-0.1.22 app/views/pages/_form.html.haml
wheels-0.1.21 app/views/pages/_form.html.haml
wheels-0.1.20 app/views/pages/_form.html.haml
wheels-0.1.19 app/views/pages/_form.html.haml
wheels-0.1.18 app/views/pages/_form.html.haml
wheels-0.1.17 app/views/pages/_form.html.haml
wheels-0.1.16 app/views/pages/_form.html.haml
wheels-0.1.15 app/views/pages/_form.html.haml
wheels-0.1.14 app/views/pages/_form.html.haml
wheels-0.1.13 app/views/pages/_form.html.haml
wheels-0.1.12 app/views/pages/_form.html.haml
wheels-0.1.10 app/views/pages/_form.html.haml
wheels-0.1.9 app/views/pages/_form.html.haml
wheels-0.1.8 app/views/pages/_form.html.haml
wheels-0.1.7 app/views/pages/_form.html.haml
wheels-0.1.6 app/views/pages/_form.html.haml
wheels-0.1.5 app/views/pages/_form.html.haml