<%= render 'spotlight/shared/curation_sidebar' %>
<%= curation_page_title %> <%= bootstrap_form_for @blacklight_configuration, url: spotlight.exhibit_blacklight_configuration_path(@exhibit), layout: :horizontal, label_col: 'col-md-3', control_col: 'col-sm-5' do |f| %>

<%= t(:'.order_header') %>

<%= t :'.instructions' %>

<% @blacklight_configuration.blacklight_config.view.keys.each do |type| %> <% end %> <%= f.fields_for :index_fields do |idxf| %> <% @blacklight_configuration.blacklight_config.index_fields.each do |key, config| %> <%= idxf.fields_for key do |field| %> <% @blacklight_configuration.blacklight_config.view.keys.each do |type| %> <% end %> <% end %> <% end %> <% end %>
<%= t :'.fields.label' %>
<%= t :'.view.show', default: t(:'blacklight.search.view.show') %>
<%= select_deselect_button %>
<%= t :".view.#{type}", default: t(:".view.#{type}") %>
<%= select_deselect_button %>
<%= f.submit nil, class: 'btn btn-primary' %>
<% end %>

<%= t(:'.exhibit_specific.header') %>

<%= t(:'.exhibit_specific.instructions') %>

<% @exhibit.custom_fields.each do |field| %> <% end %>
<%= field.label %>
<%= exhibit_edit_link field, class: 'btn btn-link' %> · <%= exhibit_delete_link field, class: 'btn btn-link' %>
<%= field.short_description %>
<%= exhibit_create_link Spotlight::CustomField.new, class: 'btn btn-primary' %>