<%= t('spotlight.exhibits.translations.general.basic_settings.label') %>
<% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{current_exhibit.slug}.title", locale: @language) %>
<%= f.fields_for :translations, translation do |translation_fields| %>
<%= translation_fields.hidden_field :key %>
<%= translation_fields.hidden_field :locale %>
<% end %>
<% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{current_exhibit.slug}.subtitle", locale: @language) %>
<%= f.fields_for :translations, translation do |translation_fields| %>
<%= translation_fields.hidden_field :key %>
<%= translation_fields.hidden_field :locale %>
<% end %>
<% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "#{current_exhibit.slug}.description", locale: @language) %>
<%= f.fields_for :translations, translation do |translation_fields| %>
<%= translation_fields.hidden_field :key %>
<%= translation_fields.hidden_field :locale %>
<% end %>
<%= t('spotlight.exhibits.translations.general.main_menu.label') %>
<% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "spotlight.curation.nav.home", locale: @language) %>
<%= f.fields_for :translations, translation do |translation_fields| %>
<%= translation_fields.hidden_field :key %>
<%= translation_fields.hidden_field :locale %>
<%= translation_fields.label :value, t('spotlight.exhibits.translations.general.main_menu.home'), class: 'col-form-label col-12 col-sm-2' %>
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
<%= t(:'spotlight.curation.nav.home', locale: I18n.default_locale) %>
<% if translation.value.present? %>
<%= blacklight_icon('check', classes: 'translation-complete') %>
<% end %>
<% end %>
<% current_exhibit.main_navigations.each do |navigation| %>
<% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: "main_navigation.#{navigation.nav_type}.label", locale: @language) %>
<%= f.fields_for :translations, translation do |translation_fields| %>
<%= translation_fields.hidden_field :key %>
<%= translation_fields.hidden_field :locale %>
<%= translation_fields.label :value, t("spotlight.exhibits.translations.general.main_menu.#{navigation.nav_type}", default: navigation.default_label), class: 'col-form-label col-12 col-sm-2' %>
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
<%= navigation[:label].presence || navigation.default_label %>
<% if translation.value.present? %>
<%= blacklight_icon('check', classes: 'translation-complete') %>
<% end %>
<% end %>
<% end %>
<% translation = Translation.find_or_initialize_by(exhibit: current_exhibit, key: 'spotlight.catalog.breadcrumb.index', locale: @language) %>
<%= f.fields_for :translations, translation do |translation_fields| %>
<%= translation_fields.hidden_field :key %>
<%= translation_fields.hidden_field :locale %>
<%= translation_fields.label :value, t('spotlight.catalog.breadcrumb.index'), class: 'col-form-label col-12 col-sm-2' %>
<%= translation_fields.text_field_without_bootstrap :value, class: 'form-control' %>
<%= t(:'spotlight.catalog.breadcrumb.index', locale: I18n.default_locale) %>
<% if translation.value.present? %>
<%= blacklight_icon('check', classes: 'translation-complete') %>
<% end %>
<% end %>