<%= render Shared::GlobalizeLocalesComponent.new %>

<%= form_tag admin_site_customization_information_texts_path do %>
  <% enabled_locales.each do |l| %>
    <%= translation_enabled_tag l, site_customization_enable_translation?(l) %>
  <% end %>
  <% contents.each do |group| %>
    <% group.each do |content| %>
      <%= hidden_field_tag "contents[content_#{content.key}][id]", content.key %>
      <% (content.globalize_locales & enabled_locales.map(&:to_sym)).each do |locale| %>
        <%= render Admin::SiteCustomization::InformationTexts::FormFieldComponent.new(content, locale: locale) %>
      <% end %>
    <% end %>
  <% end %>
  <%= submit_tag t("admin.menu.site_customization.buttons.save"), class: "button" %>
<% end %>
