Sha256: c59a872ba435fc725a71a97e0742cc5c35e1edb68176490275c0f2826e5bb073

Contents?: true

Size: 1.71 KB

Versions: 4

Compression:

Stored size: 1.71 KB

Contents

<%= 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? %>

      <div class="search_select_wrapper">
        <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 btn btn-default') %>
        <span class="sr-only"><%= t('blacklight.search.form.search_field.post_label') %></span>
        </div>
      <% end %>
    <label for="q" class="sr-only"><%= t('blacklight.search.form.search.label') %></label>
    <div class="input-group">
      <%= 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 } %>

      <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

4 entries across 4 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 app/views/catalog/_search_form.html.erb
commonwealth-vlr-engine-0.0.4 app/views/catalog/_search_form.html.erb
commonwealth-vlr-engine-0.0.3 app/views/catalog/_search_form.html.erb
commonwealth-vlr-engine-0.0.2 app/views/catalog/_search_form.html.erb