<% 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.png", 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_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 %>
<%= field_set_tag do %>
<%= t(:'.main_navigation.help') %>
<%= f.fields_for :main_navigations do |label| %>
-
<%= t :drag %>
<%= label.hidden_field :id %>
<%= label.check_box_without_bootstrap :display %>
<%= label.object.label_or_default %>
<%= label.hidden_field :label, data: {:"default-value" => label.object.default_label, :"edit-field-target" => 'true'} %>
<%= button_tag t(:'.restore_default'), data: {:"restore-default" => true}, class: "btn restore-default btn-secondary btn-sm float-right #{'hidden' if label.object.label.blank? || label.object.label == label.object.default_label}" %>
<%= label.hidden_field :weight, data: {property: "weight"} %>
<% end %>
<% end %>