<%= f.error_messages %> <%= f.hidden_field :parent, :value => @item.parent.id %>

<%= f.label :name, "Name" %> <%= f.text_field :name, :class => 'text' %>

<%= f.fields_for :title_translations do |f| %> <% @site_valid_locales.each do |locale| %>

<%= f.label :locale, "#{t('admin.title')} #{I18nVariable.from_locale(locale)}" %> <%= f.text_field locale, :value => (@item.title_translations[locale] rescue nil) %>

<% end %> <% end %>

<%= f.label :is_published, t('admin.is_published') %> <%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No

<%= f.label :url, "URL" %> <%= f.text_field :url %>