app/views/pages/_form.html.haml in wheels-0.0.23 vs app/views/pages/_form.html.haml in wheels-0.0.24

- old
+ new

@@ -1,23 +1,10 @@ - include_ckeditor - = render :partial => "child_pages_links" -= form_for form_object, :url=>form_url do |f| - -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 - .field - = f.label :title - = f.text_field :title - .field - = f.label :tag_list - = f.text_field :tag_list - .field - = f.label :body - = f.text_area :body, :class=>'ckeditor_textarea' - .actions - = f.submit 'Save' +- if params[:action]=="new" + = form_for form_object do |f| + = render :partial => "form_fields", :locals=>{:f=>f} +- else + = form_for form_object, {:url=>form_url} do |f| + = render :partial => "form_fields", :locals=>{:f=>f}