Sha256: 635a03510d566ab1927252f9f522dba90256d38be594e6e97142e7be6f45c2b7
Contents?: true
Size: 1.46 KB
Versions: 44
Compression:
Stored size: 1.46 KB
Contents
<%= form_tag search_action_url, method: :get, class: 'search-query-form clearfix navbar-form', role: 'search' do %> <%= render_hash_as_hidden_fields(search_state.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?, 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
44 entries across 44 versions & 1 rubygems