%= flash_messages %> <%= f.error_messages %> <%= f.hidden_field :parent, :value => (@item.parent.id rescue nil) %> <%= f.hidden_field :id, :value => (@item.id), :id => "object_id" %> <%= f.label :name, content_tag(:i, nil, :class => "icons-star") + t(:name) %> <%= f.text_field :name, class: 'input-xlarge', placeholder: t(:name) %> <%= I18n.t("front_page.name_field_helper") %> <%= f.fields_for :title_translations do |f| %> <% @site_valid_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)}", value: (@item.title_translations[locale] rescue nil) %> <% end %> <% end %> <%= f.label :design, t(:template_name) %> <%= f.collection_select :design, @designs, :id, :title, {selected: (@selected[:design].id rescue nil) }, {rel: reload_themes_admin_pages_path, class: "input-xlarge"} %> <%= f.label :theme, t(:theme) %> <%= f.select :theme_id, @themes.collect { |t| [t.name.capitalize, t.id] }, {include_blank: true, selected: (@selected[:theme].id rescue nil) }, { class: "input-xlarge" } %>
<%= f.label :menu_enabled_for, "#{t('front_page.menu_enable_lang')}:" %>
<% @site_valid_locales.each do |valid_locale| %> <% end %> <%= hidden_field_tag 'page[menu_enabled_for][]', '' %>
<%= f.label :enabled_for, "#{t('front_page.link_enable_lang')}:" %><% @site_valid_locales.each do |valid_locale| %> <% end %> <%= hidden_field_tag 'page[enabled_for][]', '' %> <%=javascript_include_tag "lib/items/update_cates_and_tags.js" %> <%= javascript_include_tag "lib/items/page_widget_edit_interface.js" %>