Sha256: 1b9132d9ef07135d3414c17f68eef736ba2a4d38fb7573cba584c4c26ec4a13c
Contents?: true
Size: 1.68 KB
Versions: 2
Compression:
Stored size: 1.68 KB
Contents
= render :partial => "child_pages_links" -if @page.errors.any? #errorExplanation %h2= "#{pluralize(@page.errors.count, "error")} prohibited this page from being saved:" %ul - @page.errors.full_messages.each do |msg| %li= msg #tabs %ul %li= link_to 'Page Text', '#field-body' %li= link_to 'Files', '#field-attachments' %li= link_to 'Stylesheet', '#field-stylesheet' = form_for resource, :remote=>true do |f| #field-body .field = f.label :title = f.text_field :title .field .fieldName "Display Title for this page?" = f.check_box :show_title .textarea = f.label :body = f.text_area :body, :class=>'ckeditor_textarea', :size => "120x20" = f.label :stylesheet = hidden_field_tag :container, 'content_pane' = hidden_field_tag :ajax_function, 'html' #field-stylesheet = f.text_area :stylesheet, :rows=>80, :cols=>20 #field-attachments %ul#attachments_list %li.sidebar_title Files - @page.attachments.each do |attachment| = render :partial => "attachments/edit", :locals=>{:a=>(@attachment=attachment)} %li Upload a file to this page. = render :partial=>'attachments/form' = 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wheels-0.1.30 | app/views/pages/_form.html.haml |
wheels-0.1.27 | app/views/pages/_form.html.haml |