Orbit/app/views/admin/links/_form.html.erb

27 lines
683 B
Plaintext
Raw Normal View History

<%= f.error_messages %>
2012-02-17 06:54:11 +00:00
<%= f.hidden_field :parent, :value => @item.parent.id %>
<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 %>
<% end %>
<p>
<%= f.label :is_published, t('admin.is_published') %>
<%= f.radio_button :is_published, true %>Yes <%= f.radio_button :is_published, false %> No
</p>
<p>
<%= f.label :url, "URL" %>
<%= f.text_field :url %>
</p>