%= form_tag search_action_url, method: :get, class: 'search-query-form form-inline clearfix navbar-form', role: 'search' do %>
<%= render_hash_as_hidden_fields(search_state.params_for_search().except(:q, :search_field, :qt, :page, :utf8)) %>
<% unless search_fields.empty? %>
<%= select_tag(:search_field,
options_for_select(search_fields, h(params[:search_field])),
title: t('blacklight.search.form.search_field.title'),
class: 'search_field btn btn-default') %>
<%= t('blacklight.search.form.search_field.post_label') %>
<% end %>
<%= text_field_tag :q,
params[:q],
placeholder: t('blacklight.search.form.search.placeholder'),
class: 'search_q q form-control',
id: 'q',
autofocus: should_autofocus_on_search_box?,
data: { autocomplete_enabled: autocomplete_enabled?,
autocomplete_path: blacklight.suggest_index_path } %>
<% end %>