Sha256: 29a636ab626034e7f100c83aacfd375fa795e1447e6d60444340039da1f3630a

Contents?: true

Size: 1.35 KB

Versions: 26

Compression:

Stored size: 1.35 KB

Contents

<%= form_tag search_action_url, method: :get, class: 'search-query-form clearfix navbar-form', role: 'search' do %>
  <%= render_hash_as_hidden_fields(params_for_search().except(:q, :search_field, :qt, :page, :utf8)) %>

  <div class="input-group">
    <% if search_fields.length > 1 %>
      <span class="input-group-addon for-search-field">
        <label for="search_field" class="sr-only"><%= t('blacklight.search.form.search_field.label') %></label>
        <%= select_tag(:search_field, options_for_select(search_fields, h(params[:search_field])), title: t('blacklight.search.form.search_field.title'), id: "search_field", class: "search_field") %>
      </span>
    <% elsif search_fields.length == 1 %>
      <%= hidden_field_tag :search_field, search_fields.first.last %>
    <% end %>

    <label for="q" class="sr-only"><%= t('blacklight.search.form.search.label') %></label>
    <%= 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?  %>

    <span class="input-group-btn">
      <button type="submit" class="btn btn-primary search-btn" id="search">
        <span class="submit-search-text"><%= t('blacklight.search.form.submit') %></span>
        <span class="glyphicon glyphicon-search"></span>
      </button>
    </span>
  </div>
<% end %>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
blacklight-spotlight-0.8.0 app/views/catalog/_search_form.html.erb
blacklight-spotlight-0.7.2 app/views/catalog/_search_form.html.erb
blacklight-spotlight-0.7.1 app/views/catalog/_search_form.html.erb
blacklight-spotlight-0.7.0 app/views/catalog/_search_form.html.erb
blacklight-spotlight-0.6.0 app/views/catalog/_search_form.html.erb
blacklight-spotlight-0.5.0 app/views/catalog/_search_form.html.erb