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

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

<%= t :'.instructions' %>

<% available_view_fields.keys.each do |type| %> <% end %> <%= f.fields_for :index_fields do |idxf| %> <% @blacklight_configuration.blacklight_config.index_fields.select { |k, v| blacklight_configuration_context.evaluate_if_unless_configuration(v.original) }.each do |key, config| %> <%= render partial: 'metadata_field', locals: { key: key, config: config, f: idxf } %> <% end %> <% end %>
<%= t :'.field.label' %>
<%= t :'.view.show' %>
<%= select_deselect_button %>
<%= t :".view.#{type}", default: t("blacklight.search.view.#{type}", default: type.to_s.humanize.titleize) %>
<%= 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' %>