%= f.error_messages %>
<%= f.hidden_field :parent, :value => (@item.parent.id rescue nil) %>
<%= f.label :name, t(:name), :class => 'control-label' %>
<%= f.text_field :name, :class => 'text input-xlarge' %>
<%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}", :class => 'control-label' %>
<%= f.text_field locale, :class => 'text input-xlarge', :value => (@item.title_translations[locale] rescue nil) %>
<% end %>
<% end %>
<%= f.label :is_published, "#{t(:is_published)} ?", :class => 'control-label' %>
<%= f.label :menu_enabled_for, "#{t(:menu_enabled_for)}:", :class => 'control-label' %>
<% @site_valid_locales.each do |valid_locale| %>
<% end %>
<%= hidden_field_tag 'link[menu_enabled_for][]', '' %>
<%= f.label :url, "#{t(:url)}:", :class => 'control-label' %>
<%= f.text_field :url, :class => 'text input-xlarge', :value => (@item.url rescue nil) %>