% url_opts = action_name == 'edit' ? {:url => admin_page_path(@page.id)} : {} %>
<%= form_for [:admin, @page], url_opts do |f| %>
<%= render :partial => "/shared/admin/error_messages",
:locals => {
:object => @page,
:include_object_name => true
} %>
<%= f.label :title %>
<%= f.text_field :title, :class => "larger widest" %>
<%= render :partial => "form_page_parts",
:locals => {
:f => f
} %>
<%= render :partial => "form_advanced_options",
:locals => {
:f => f
} %>
<%= render :partial => "/shared/admin/form_actions",
:locals => {
:f => f,
:continue_editing => true,
:delete_title => t('admin.pages.delete'),
:delete_confirmation => t('shared.admin.delete.message', :title => @page.title)
} %>
<%= render :partial => "form_new_page_parts",
:locals => {
:f => f
} if RefinerySetting.find_or_set(:new_page_parts, false) %>
<% end %>
<% content_for :head do %>
<% end %>