<%= bootstrap_form_for [@search.exhibit, @search], layout: :horizontal, label_col: 'col-md-2', control_col: 'col-sm-7', data: {form_observer: 'true', autocomplete_exhibit_catalog_index_path: spotlight.autocomplete_exhibit_search_path(@search.exhibit, @search, q: "%QUERY", format: "json")}, html: {id: 'edit-search'} do |f| %> <% if @search.errors.any? %>

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

<% end %>
<%= f.text_field :title, control_col: "col-sm-5" %> <%= f.text_area :long_description, rows: 5 %> <%= f.static_control label: t(:".query_params") do %>
<%= render_constraints(@search.query_params) %>
<% end unless @search.query_params.blank? %>
<%= f.fields_for :masthead, (@search.masthead || @search.build_masthead) do |m| %>

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

<%= t(:'.masthead.help_secondary') %>

<%= render '/spotlight/featured_images/form', f: m, jcrop_options: default_masthead_jcrop_options %> <% end %>
<%= f.fields_for :thumbnail, (@search.thumbnail || @search.build_thumbnail) do |m| %>

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

<%= render '/spotlight/featured_images/form', f: m, jcrop_options: default_thumbnail_jcrop_options %> <% end %>
<%= cancel_link @search,exhibit_searches_path(@exhibit), class: 'btn btn-link' %> <%= f.submit nil, class: 'btn btn-primary' %>
<% end %>