Sha256: 9f9355a8a6ac457dcc7b4f3eaf67b490c4bd838e29bdfea9f080d986bd65a0ac

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

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

    <% unless search_fields.empty? %>
      <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'), :class=>"search_field form-control") %>
      <span class="sr-only"><%= t('blacklight.search.form.search_field.post_label') %></span>
    <% end %>
    <div class="input-group search-input-group">
        <label for="q" class="sr-only"><%= t('blacklight.search.form.q') %></label>
         <%= text_field_tag :q, params[:q], :placeholder => t('blacklight.search.form.q'), :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

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-5.8.2 app/views/catalog/_search_form.html.erb
blacklight-5.8.1 app/views/catalog/_search_form.html.erb
blacklight-5.8.0 app/views/catalog/_search_form.html.erb