<%= form_for :page, url: admin_pages_path, remote: true do |f| %>
<%= f.hidden_field :parent, class: "parent" %> <%= f.label :name, content_tag(:i, nil, :class => "icons-star") + t(:name) %> <%= f.text_field :name, class: 'input-xlarge', placeholder: t(:name), id: 'name' %> <%= t("front_page.name_field_helper") %> <%= f.fields_for :title_translations do |f| %> <% @site_in_use_locales.each do |locale| %> <%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}" %> <%= f.text_field locale, class: 'input-xlarge', placeholder: "#{t(:title)} #{I18nVariable.from_locale(locale)}", id: locale %> <% end %> <% end %> <%= f.label :design, t(:template_name) %> <%= select_tag "page[design]", nil, class: "input-xlarge change" %> <%= f.label :theme, t(:theme) %> <%= select_tag "page[theme_id]", nil, class: "input-xlarge", include_blank: true %> <%= f.label :module_app_id, t(:module) %> <%= select_tag "page[module_app_id]", nil, class: "input-xlarge change", include_blank: true %>
<%= f.label :app_frontend_url, t('front_page.display_mode') %> <%= select_tag "page[app_frontend_url]", nil, class: "input-xlarge change" %>
<%= f.label :categories, t(:categories) %> <%= content_tag :label, class: "checkbox" do %> <%= check_box_tag nil, nil, true, class: "select_all" %> <%= t(:all) %> <% end %>
<%= f.label :tags, t(:tags) %> <%= content_tag :label, class: "checkbox" do %> <%= check_box_tag nil, nil, true, class: "select_all" %> <%= t(:all) %> <% end %>
<%= f.label :frontend_data_count, t(:frontend_data_count) %> <%= select_tag "page[frontend_data_count]", nil, class: "input-mini", id: "page_count" %>
<%= f.label :is_published, t(:is_published) %>

<%= t(:cancel) %> <%= f.submit t(:submit), class: 'btn btn-primary btn-small' %>
<% end %>