<%= tb_form_errors(f.object) %>

Page Name

<%= f.label :name, :required => true, :style =>"display:none;", :class=>"form-label" %>
<%= f.text_field :name, :class => "form-control" %>

Page Content

<%= f.fields_for :spud_page_partials do |b| %>
<%= b.hidden_field :name, :class => "tab_name" %> <%= b.text_area :content, :class => "page-partial-content-editor" %>
<% end %>

Advanced Settings

<%= f.label :layout, "Template", :class=>"col-lg-2 control-label"%>
<%= f.select :layout, options_for_select(layout_options,@page.layout),{},{:title => "", 'data-source' => page_parts_admin_pages_path(:page => @page.id), class: 'form-control' }%> 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=>"col-lg-2 control-label"%>
<%= f.select :spud_page_id,options_for_select(SpudPage.options_tree_for_page(:filter => @page), @page.spud_page_id),{:include_blank => 'None'},{:title => "", :class=>'form-control' }%>
<%= f.label :url_name, "Perma Link",:disabled => true, :class=>"col-lg-2 control-label"%>
<%= root_url %> <%= f.text_field :url_name, :title => "", :size=>20, :class=>'form-inline' %>
<%= f.check_box :use_custom_url_name, :onchange => "$('#spud_page_url_name').attr('disabled',!this.checked);" %> <%= f.label :use_custom_url_name, 'Customize this pages url' %>

Meta Information

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

<%= f.label :page_title, "Page Title", :class=>"col-lg-2 control-label" %>
<%= f.text_field :page_title, :class=>"form-control" %> The page title is the most important SEO ranking factor. Learn more
<%= f.label :meta_keywords, "Keywords", :class=>"col-lg-2 control-label" %>
<%= f.text_field :meta_keywords, :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=>"col-lg-2 control-label" %>
<%= f.text_area :meta_description, :class=>"form-control", :rows=>3 %> A short description of the page. This is what appears on a search engines search result page.
<%= f.label :visibility, :class=>"col-lg-2 control-label" %>
<%= f.select(:visibility, [["Public",0],["Private",1]], {}, {class: 'form-control'})%>
<%= f.label :published, "Published", class: "col-lg-2 control-label" %>
<%= f.check_box :published %>
<%= f.label :notes, "Notes", class: "col-lg-2 control-label" %>
<%= f.text_area :notes, :class=>"form-control", :rows=>2 %> Have a note to make about this page while you work? Place it here for later.
<%= hidden_field_tag "preview", 0 %>