<%= form_for :link, url: admin_links_path, remote: true do |f| %>
<%= f.hidden_field :parent, class: "parent" %> <%= f.label :name, content_tag(:i, nil, :class => "icons-star") + t(:name) %> <%= f.text_field :name, class: 'input-xlarge', placeholder: t(:name), id: 'name' %> <%= t("front_page.name_field_helper") %> <% @site_valid_locales.each do |locale| %> <%= f.fields_for :title_translations do |f| %> <%= f.label :locale, "#{t(:title)} #{I18nVariable.from_locale(locale)}" %> <%= f.text_field locale, class: 'input-xlarge', placeholder: "#{t(:title)} #{I18nVariable.from_locale(locale)}", id: locale %> <% end %> <%= f.fields_for :url_translations do |f| %> <%= f.label :locale, "#{t(:url)} #{I18nVariable.from_locale(locale)}" %> <%= f.text_field locale, :class => 'input-xlarge', placeholder: "#{t(:url)} #{I18nVariable.from_locale(locale)}", id: "url-#{locale}" %> <% end %> <% end %>
<%= f.label :is_published, t(:is_published) %>

<% @site_valid_locales.each do |valid_locale| %>
<%= t(:menu_enable) %>
<% end %>
<%= t(:cancel) %> <%= f.submit t(:submit), class: 'btn btn-primary btn-small' %>
<% end %>