<%= render 'spotlight/shared/exhibit_sidebar' %>
<%= configuration_page_title %> <%= bootstrap_form_for @exhibit, url: spotlight.exhibit_appearance_path(@exhibit), layout: :horizontal, label_col: 'col-md-3 col-sm-3', control_col: 'col-md-5 col-sm-5', html: {data: { autocomplete_exhibit_catalog_path: spotlight.autocomplete_exhibit_catalog_path(current_exhibit, q: "%QUERY", format: "json") } } do |f| %> <% if @exhibit.errors.any? %>

<%= pluralize(@exhibit.errors.count, "error") %> prohibited this page from being saved:

<% end %>
<% if Spotlight::Engine.config.exhibit_themes.many? %>

<%= t(:'.site_theme.help') %>

<%= f.form_group :theme, label: { text: t(:'.site_theme.label') } do %> <% Spotlight::Engine.config.exhibit_themes.each do |theme| %>
<%= image_tag "spotlight/themes/#{theme}_preview", width: 100, height: 100 %> <%= f.radio_button :theme, theme, label: t(:".site_theme.#{theme}", default: theme.to_s.titleize), inline: true %>
<% end %> <% end %>
<% end %>

<%= t(:'.site_masthead.help') %>

<%= f.fields_for(:masthead, current_exhibit.masthead || current_exhibit.build_masthead) do |m| %> <%= render '/spotlight/featured_images/form', f: m, initial_crop_selection: Spotlight::Engine.config.masthead_initial_crop_selection, crop_type: :masthead %> <% end %>

<%= t(:'.site_thumbnail.help') %>

<%= f.fields_for(:thumbnail, current_exhibit.thumbnail || current_exhibit.build_thumbnail) do |m| %> <%= render '/spotlight/featured_images/form', f: m, initial_crop_selection: Spotlight::Engine.config.thumbnail_initial_crop_selection, crop_type: :thumbnail %> <% end %>
<%= f.submit nil, class: 'btn btn-primary' %>
<% end %>