Sha256: 4e7a3deb09fb9988e3c582df344353cc665074033bf6e0f767fd7be77fc92d68

Contents?: true

Size: 1.17 KB

Versions: 98

Compression:

Stored size: 1.17 KB

Contents

<% filters = applicable_filters_for(@taxon) %>
<% unless filters.empty? %>
  <%= form_tag '', method: :get, id: 'sidebar_products_search' do %>
    <%= hidden_field_tag 'per_page', params[:per_page] %>
    <% filters.each do |filter| %>
      <% labels = filter[:labels] || filter[:conds].map {|m,c| [m,m]} %>
      <% next if labels.empty? %>
      <div class="navigation" data-hook="navigation">
        <h6 class="filter-title"> <%= filter[:name] %> </h6>
        <ul class="filter_choices">
          <% labels.each do |nm,val| %>
            <% label = "#{filter[:name]}_#{nm}".gsub(/\s+/,'_') %>
            <li class="nowrap">
              <input type="checkbox"
                     id="<%= label %>"
                     name="search[<%= filter[:scope].to_s %>][]"
                     value="<%= val %>"
                     <%= params[:search] && params[:search][filter[:scope]] && params[:search][filter[:scope]].include?(val.to_s) ? "checked" : "" %> />
              <label class="nowrap" for="<%= label %>"> <%= nm %> </label>
            </li>
          <% end %>
        </ul>
      </div>
    <% end %>
    <%= submit_tag t('spree.search'), name: nil %>
  <% end %>
<% end %>

Version data entries

98 entries across 98 versions & 2 rubygems

Version Path
solidus_frontend-4.0.0 app/views/spree/shared/_filters.html.erb
solidus_frontend-4.0.0.dev app/views/spree/shared/_filters.html.erb
solidus_frontend-3.4.0 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.1.9 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.4.0.dev app/views/spree/shared/_filters.html.erb
solidus_frontend-3.3.0 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.2.5 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.2.4 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.2.3 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.1.8 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.0.8 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.2.2 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.2.1 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.3.0.alpha app/views/spree/shared/_filters.html.erb
solidus_frontend-3.2.0 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.2.0.alpha app/views/spree/shared/_filters.html.erb
solidus_frontend-3.0.7 app/views/spree/shared/_filters.html.erb
solidus_frontend-2.11.17 app/views/spree/shared/_filters.html.erb
solidus_frontend-3.1.7 app/views/spree/shared/_filters.html.erb
solidus_frontend-2.11.16 app/views/spree/shared/_filters.html.erb