<%= flash_messages %>
<%= f.error_messages %>

<%= f.fields_for :name_translations do |f| %>
  <% @site_in_use_locales.each do |locale| %>
    <%= f.label :locale, "#{t(:name)} #{I18nVariable.from_locale(locale)}" %>
    <%= f.text_field locale, class: 'input-large', placeholder: "#{t(:name)} #{I18nVariable.from_locale(locale)}", value: (@tag.name_translations[locale] rescue nil), id: locale %>
  <% end %>
<% end %>
