<%= t('.page_options') %>
<%= f.label :parent_id, t('.parent_page') %>
<%= refinery_help_tag t('.parent_page_help') %>
<%= f.select :parent_id, parent_id_nested_set_options(@page), :include_blank => true %>
<% if Refinery::Pages.use_layout_templates %>
<%= f.label :layout_template, t('.layout_template') %>
<%= refinery_help_tag t('.layout_template_help') %>
<% if @page.parent_id? %>
<%= f.select(:layout_template, @valid_layout_templates, {:selected => @page.parent.layout_template}) %>
<% else %>
<%= f.select(:layout_template, @valid_layout_templates) %>
<% end %>
<% end %>
<% if Refinery::Pages.use_view_templates %>
<%= f.label :view_template, t('.view_template') %>
<%= refinery_help_tag t('.view_template_help') %>
<% if @page.parent_id? %>
<%= f.select(:view_template, @valid_view_templates.map{|t| [t.titleize, t]}, {:selected => @page.parent.view_template }) %>
<% else %>
<%= f.select(:view_template, @valid_view_templates.map{|t| [t.titleize, t]}) %>
<% end %>
<% end %>
<%= f.label :menu_title, t('.menu_title') %>
<%= refinery_help_tag t('.menu_title_help') %>
<%= f.text_field :menu_title, :style=> 'width:400px;' %>
<% if Refinery::Pages.use_custom_slugs %>
<%= f.label :custom_slug, t('.custom_slug') %>
<%= refinery_help_tag t('.custom_slug_help') %>
<%= f.text_field :custom_slug, :style=> 'width:400px;' %>
<% end %>
<%= f.label :skip_to_first_child?, t('.skip_to_first_child') %>
<%= refinery_help_tag t('.skip_to_first_child_help') %>
<%= f.check_box :skip_to_first_child %>
<%= f.label :skip_to_first_child, t('.skip_to_first_child_label'),
:class => "stripped" %>
<%= f.label :link_url, t('.link_url') %>
<%= refinery_help_tag t('.link_url_help') %>
<%= f.text_field :link_url, :style=> 'width:400px;' %>
<% content_for :javascripts do %>
<% end %>
<%= f.label :show_in_menu, t('.show_in_menu_title'),
:id => 'page_show_in_menu_heading' %>
<%= refinery_help_tag t('.show_in_menu_help') %>
<%= f.check_box :show_in_menu %>
<%= f.label :show_in_menu, t('.show_in_menu_description'),
:class => "stripped" %>