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

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

<%= t :'.instructions' %>

<% @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 :'.fields.label' %> <%= t :'.view.show', default: t(:'blacklight.search.view.show') %><%= t :".view.#{type}", default: t(:".view.#{type}") %>
<%= f.submit nil, class: 'btn btn-primary pull-right' %>
<% end %>

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

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

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