Sha256: 97c812c48318694bec9cb933888a4856f5188db603ec7b4ad82911569650d79d

Contents?: true

Size: 1.36 KB

Versions: 1

Compression:

Stored size: 1.36 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? %>

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

      <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

1 entries across 1 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.1 app/views/catalog/_search_form.html.erb