2013-07-02 08:46:44 +00:00
|
|
|
<%= flash_messages %>
|
2010-01-14 10:30:53 +00:00
|
|
|
<%= f.error_messages %>
|
2013-07-02 08:46:44 +00:00
|
|
|
|
2012-09-12 11:12:50 +00:00
|
|
|
<%= f.hidden_field :parent, :value => (@item.parent.id rescue nil) %>
|
2010-01-14 10:30:53 +00:00
|
|
|
|
2013-07-22 05:45:13 +00:00
|
|
|
<<<<<<< Updated upstream
|
2013-07-02 08:46:44 +00:00
|
|
|
<%= f.label :name, t(:name) %>
|
|
|
|
<%= f.text_field :name, class: 'input-xlarge', placeholder: t(:name) %>
|
2013-07-22 05:45:13 +00:00
|
|
|
=======
|
|
|
|
<%= f.label :name, content_tag(:i, nil, :class => "icons-star") + t(:name) %>
|
|
|
|
<%= f.text_field :name, class: 'input-xlarge', placeholder: t(:name) %>
|
|
|
|
<span class="help-block"><%= I18n.t("front_page.name_field_helper") %></span>
|
|
|
|
>>>>>>> Stashed changes
|
2013-07-02 08:46:44 +00:00
|
|
|
|
|
|
|
<%= f.label :url, t(:url) %>
|
|
|
|
<%= f.text_field :url, :class => 'input-xlarge', placeholder: t(:url) %>
|
2010-01-14 10:30:53 +00:00
|
|
|
|
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| %>
|
2013-07-02 08:46:44 +00:00
|
|
|
<%= 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) %>
|
2012-02-17 06:54:11 +00:00
|
|
|
<% end %>
|
2011-04-13 10:19:51 +00:00
|
|
|
<% end %>
|
2010-01-14 10:30:53 +00:00
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
<%= f.label :is_published, "#{t('front_page.is_published')} ?" %>
|
|
|
|
<p>
|
|
|
|
<label class="radio inline">
|
|
|
|
<%= f.radio_button :is_published, true %>
|
|
|
|
<%= t(:yes_) %>
|
|
|
|
</label>
|
|
|
|
<label class="radio inline">
|
|
|
|
<%= f.radio_button :is_published, false %>
|
|
|
|
<%= t(:no_) %>
|
|
|
|
</label>
|
|
|
|
</p>
|
2010-01-14 10:30:53 +00:00
|
|
|
|
2013-07-02 08:46:44 +00:00
|
|
|
<%= f.label :menu_enabled_for, "#{t('front_page.menu_enable_lang')}:" %>
|
|
|
|
<p>
|
|
|
|
<% @site_valid_locales.each do |valid_locale| %>
|
|
|
|
<label class="checkbox inline">
|
2012-09-12 11:12:50 +00:00
|
|
|
<%= check_box_tag 'link[menu_enabled_for][]', valid_locale, (@item.menu_enabled_for.nil? ? true : @item.menu_enabled_for.include?(valid_locale)) %>
|
|
|
|
<%= I18nVariable.from_locale(valid_locale) %>
|
2013-07-02 08:46:44 +00:00
|
|
|
</label>
|
|
|
|
<% end %>
|
|
|
|
<%= hidden_field_tag 'link[menu_enabled_for][]', '' %>
|
|
|
|
</p>
|