<%= render 'spotlight/shared/curation_sidebar' %>
<%= bootstrap_form_for @blacklight_configuration, url: spotlight.exhibit_blacklight_configuration_path(@exhibit), style: :horizontal, right: "col-sm-5" do |f| %>

<%= t('spotlight.curation.header') %>

<%= t('spotlight.curation.metadata_fields.header') %>

<%= f.submit nil %>
<% @exhibit.blacklight_configuration.default_blacklight_config.view.keys.each do |type| %> <% end %> <%= f.fields_for :index_fields do |idxf| %> <% @exhibit.blacklight_configuration.all_index_fields.each do |key, config| %> <%= idxf.fields_for key do |field| %> <% @exhibit.blacklight_configuration.default_blacklight_config.view.keys.each do |type| %> <% end %> <% end %> <% end %> <% end %>
<%= t :'spotlight.curation.metadata_fields.label' %> <%= t :'spotlight.curation.metadata_fields.view.show', default: t(:'blacklight.search.view.show') %><%= t "spotlight.curation.metadata_fields.view.#{type}", default: t("blacklight.search.view.#{type}") %>
<%= config.label %> <%= field.check_box :show, checked: (@exhibit.blacklight_configuration.index_fields[key] || {})[:show], label: "" %><%= field.check_box type, checked: (@exhibit.blacklight_configuration.index_fields[key] || {})[type], label: "" %>
<% end %>