<%= f.label :title %>
<%= f.text_field :title, :class => "larger", :style => 'width: 954px' %>
<% @page.parts.each_with_index do |part, part_index| %>
-
<%= link_to part.title, "##{@page.new_record? ? "page_part_new_#{part_index}" : dom_id(part)}" %>
<% end %>
<% if RefinerySetting.find_or_set(:new_page_parts, false) %>
-
<%= link_to refinery_icon_tag("add.png"), "#", :id => "add_page_part", :title => "Create Content Section" %>
-
<%= link_to(refinery_icon_tag("delete.png"), "#", :title => 'Delete content section', :class => 'delete_page_part', :name => "Delete Content Section", :id => "delete_page_part") %>
<% end %>
<% part_index = -1 %>
<% f.fields_for :parts do |p| %>
<%= render :partial => "page_part_field", :locals => {
:part => p.object,
:part_index => (part_index += 1),
:new_part => @page.new_record?
} %>
<% end %>
<%= f.label :parent_id %>
<%= f.collection_select :parent_id, Page.find(:all, :order => "parent_id, position ASC"), :id, :indented_title, :include_blank => true %>
<%= label_tag :custom_title %>
<%= label_tag "", 'Type:', :class => "stripped" %>
<% ["none", "text"].each do |type| %>
<%= f.radio_button :custom_title_type, "#{type}" %>
<%= label_tag "page_custom_title_type_#{type}", "#{type.titleize}", :class => "stripped" %>
<% end %>
'>
<%= f.text_field :custom_title, {:size => 103} %>
If you want the page to have a different title than the one that shows in the menu and browser title then enter it here.
<%= label_tag :skip_to_first_child? %>
<%= f.check_box :skip_to_first_child %>
<%= f.label :skip_to_first_child, "Check this box if you want the visitor to be redirected to this page's first child page if this page is selected.", :class => "stripped" %>
<%= f.label :link_url, "Custom URL" %>
<%= f.text_field :link_url, {:size => 103} %>
Enter a URL if this page links to an external site or to a pre-existing resource e.g. a contact page.
Note: This URL must point to a location that exists; a new one will not be created.
Search Engine Optimization
<%= f.label :browser_title %>
<%= f.text_field :browser_title, :size => 63 %>
If you want to override the default browser title, do it here.
<%= f.label :meta_keywords %>
<%= f.text_field :meta_keywords, :size => 63 %>
Enter 5-10 keywords that relate to this page. Separate keywords by a comma.
<%= f.label :meta_description %>
<%= f.text_area :meta_description, :cols => 95, :rows => 3 %>
Enter a concise two or three sentences describing what this page is about.
<%= f.label :show_in_menu %>
<%= f.check_box :show_in_menu %>
<%= f.label :show_in_menu, "Check this box if this page should appear in the site menu" %>
<% end %>
<% end %>
<% content_for :head do %>
<% end %>