Sha256: 9593b965421231bf79529334741afe32a3fe308050e64be0114d06dcd70305f1

Contents?: true

Size: 499 Bytes

Versions: 3

Compression:

Stored size: 499 Bytes

Contents

<%
  aggregations = @products.aggs
  filters = Spree::Core::SearchkickFilters.applicable_filters(aggregations)
%>
<%= form_tag '', :method => :get, :id => 'sidebar_products_search' do %>
  <%= hidden_field_tag 'per_page', params[:per_page] %>
  <% filters.each do |filter| %>
    <% next if filter[:options].empty? %>
    <%= render partial: "spree/shared/es_filter", locals: { filter: filter } %>
  <% end %>
  <%= submit_tag Spree.t(:search), :name => nil, :class => 'btn btn-primary' %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_searchkick-0.1.2 app/views/spree/shared/_filters.html.erb
solidus_searchkick-0.1.1 app/views/spree/shared/_filters.html.erb
solidus_searchkick-0.1.0 app/views/spree/shared/_filters.html.erb