<%=error_messages_for(f.object)%>
Page Title
<%=f.label :name, :required=>true,:style =>"display:none;", :class=>"control-label"%>
<%=f.text_field :name, :class => "form-control full-width"%>
<%=f.fields_for :spud_page_partials do |b|%>
<%=b.hidden_field :name,:class => "tab_name"%>
<%=b.select :format,Spud::Core.renderers.collect { |k,v| [v[:description] || k, k]}, {:include_blank => false}, :class => "pull-right", "data-formatter" => "spud_partial_#{b.object.name.parameterize}"%>
<%=b.text_area :content,:class => "spud-formatted-editor", :rows => 10, :id => "spud_partial_#{b.object.name.parameterize}","data-format" => b.object.format%>
<%end%>

Advanced Settings (optional)
<%=f.label :layout, "Template", :class=>"control-label col-sm-2"%>
<%=f.select :layout, options_for_select(layout_options,@page.layout),{},{:title => "", :class => "form-control", 'data-source' => page_parts_spud_admin_pages_path(:page => @page.id) }%> Use this to control the layout template to be used for this page if they are available.
<%=f.label :spud_page_id, "Parent Page", :class=>"control-label col-sm-2"%>
<%=f.select :spud_page_id,options_for_select(SpudPage.options_tree_for_page(:filter => @page,:site_id => session[:admin_site]),@page.spud_page_id),{:include_blank => 'None'},{:title => "", :class => "form-control"}%>
<%=f.label :url_name, "Perma Link",:disabled => true, :class=>"control-label col-sm-2"%>
<%=root_url%><%=f.text_field :url_name,:title => "",:size=>20, :class => "form-control", :disabled => (f.object.use_custom_url_name ? nil : true)%>
Meta Information (optional)

These fields are used to notify search engines about important keywords and the appropriate description to display in a search result.

<%=f.label :meta_keywords,"Keywords", :class=>"control-label col-sm-2"%>
<%=f.text_field :meta_keywords,:title => "", :class => "form-control"%> A Comma seperated list of keywords for search engines. Keep it short (no more than 10 keywords)
<%=f.label :meta_description,"Description", :class => "control-label col-sm-2"%>
<%=f.text_area :meta_description,:style => "height:60px;", :class => "form-control"%> A short description of the page. This is what appears on a search engines search result page.
<%=f.label :visibility, :class=>"control-label col-sm-2"%>
<%=f.select :visibility, [["Public",0],["Private",1]], :class => "form-control"%>
<%=f.label :published, :class=>"control-label col-sm-2"%>
<%=f.check_box :published%>
<%=f.label :notes,"Notes", :class=>"control-label col-sm-2"%>
<%=f.text_area :notes,:style =>"width:400px;height:40px;"%> Have a note to make about this page while you work? Place it here for later.
<%=hidden_field_tag "preview",:value => 0%>