<%= field_set_tag do %>
<%= f.check_box(:searchable, label: t(:'.exhibit_style.searchable.label')) %>
<% end %>
<%= t(:'.site_masthead.help') %>
<%= f.fields_for(current_exhibit.masthead || current_exhibit.build_masthead) do |m| %> <%= field_set_tag do %> <%= m.check_box(:display, checked: current_exhibit.masthead.try(:display), label: t(:'.site_masthead.display.label')) %> <% end %> <%= field_set_tag(t(:'.site_masthead.source.header')) do %>
<%= m.radio_button(:source, :exhibit, label: t(:'.site_masthead.source.exhibit.label')) %>
<%= m.hidden_field(:document_global_id) %>
<%= m.hidden_field(:remote_image_url, data: default_masthead_jcrop_options) %>
<%= text_field_tag(:document_title, presenter(m.object.document || current_exhibit.blacklight_configuration.blacklight_config.solr_document_model.new).document_show_html_title, class: "form-control", data: {input_select_target: '#appearance_masthead_source_exhibit', masthead_typeahead: true, target_panel: '#masthead-target-panel', :'id-field' => '#appearance_masthead_document_global_id', remote_url_field: '#appearance_masthead_remote_image_url' }) %>
<%= t(:'.site_masthead.source.exhibit.help') %>
<%= m.radio_button(:source, :remote, label: t(:'.site_masthead.source.remote.label')) %>
<%= m.file_field_without_bootstrap(:image, data: default_masthead_jcrop_options.merge(input_select_target: '#appearance_masthead_source_remote')) %>
<% end %>
<%= field_set_tag(t(:'.site_masthead.source.remote.header')) do %>
<%= t(:'.site_masthead.source.remote.help') %>
">
<%= hidden_field_tag :masthead_image_crop, ([current_exhibit.masthead.image_crop_x.to_i, current_exhibit.masthead.image_crop_y.to_i, current_exhibit.masthead.image_crop_x.to_i + current_exhibit.masthead.image_crop_w.to_i, current_exhibit.masthead.image_crop_y.to_i + current_exhibit.masthead.image_crop_h.to_i].to_json if current_exhibit.masthead.try(:image_crop_x)) %>
<%= m.cropbox :image %>
<% end %>
<% end %>
<%= field_set_tag do %>
<%= f.form_group :document_index_view_types, label: {text: t(:'.document_index_view_types')} do %>
<%= f.fields_for :document_index_view_types, @appearance.document_index_view_types do |vt| %>
<% @appearance.view_type_options.each do |key| %>
<%= vt.check_box key %>
<% end %>
<% end %>
<% end %>
<%= f.form_group :default_per_page, label: { text: t(:'.default_per_page')} do %>
<% @appearance.per_page_options.each do |key| %>
<%= f.radio_button :default_per_page, key, label: key.to_s %>
<% end %>
<% end %>
<% end %>
<%= f.submit nil, class: 'btn btn-primary' %>