2010-01-14 10:30:53 +00:00
|
|
|
<%= f.error_messages %>
|
2012-02-17 06:54:11 +00:00
|
|
|
<%= f.hidden_field :parent, :value => @item.parent.id %>
|
2010-01-14 10:30:53 +00:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :name, "Name" %>
|
|
|
|
<%= f.text_field :name, :class => 'text' %>
|
|
|
|
</p>
|
|
|
|
|
2012-07-25 21:58:09 +00:00
|
|
|
<%= f.fields_for :title_translations do |f| %>
|
2012-02-17 06:54:11 +00:00
|
|
|
<% @site_valid_locales.each do |locale| %>
|
|
|
|
<p>
|
|
|
|
<%= f.label :locale, "#{t('admin.title')} #{I18nVariable.from_locale(locale)}" %>
|
2012-07-25 21:58:09 +00:00
|
|
|
<%= f.text_field locale, :value => (@item.title_translations[locale] rescue nil) %>
|
2012-02-17 06:54:11 +00:00
|
|
|
</p>
|
|
|
|
<% end %>
|
2011-04-13 10:19:51 +00:00
|
|
|
<% end %>
|
2010-01-14 10:30:53 +00:00
|
|
|
|
|
|
|
<p>
|
2011-04-13 10:19:51 +00:00
|
|
|
<%= f.label :is_published, t('admin.is_published') %>
|
2010-01-14 10:30:53 +00:00
|
|
|
<%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= f.label :url, "URL" %>
|
|
|
|
<%= f.text_field :url %>
|
2011-04-13 10:19:51 +00:00
|
|
|
</p>
|