%= f.error_messages %> <%= f.hidden_field :parent_id %>
<%= f.label :name, t('admin.name') %> <%= f.text_field :name, :class => 'text' %>
<% @site_valid_locales.each do |locale| %><%= label_tag "page[title]", "#{t('admin.title')} #{locale}" %> <%= text_field_tag "page[i18n_variable][#{locale}]", (@i18n_variable[locale] if @i18n_variable), :class => 'text' %>
<% end %><%= t('admin.design_name') %> <% if @design %> <%= f.collection_select :design_id, @designs, :id, :title, {}, :rel => admin_pages_path %> <% else %> <%= f.select :design_id, @designs.collect { |d| [d.title, d.id] }, {:selected => @default_design.id}, {:rel => admin_pages_path} %> <% end %>
<%= t('admin.theme') %> <% if @design %> <%= f.select :theme_id, @design.themes.collect { |t| [t.name.capitalize, t.id] }%> <% else %> <%= f.select :theme_id, @default_design.themes.collect { |t| [t.name.capitalize, t.id] }, :selected => @default_theme.id %> <% end %>
<%= f.label :is_published, "#{t('admin.is_published')} ?" %> <%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No