Sha256: 73ea257306069995bb50d429097e16ea94b3cb3a041342e57af717f8166fa63e

Contents?: true

Size: 1.18 KB

Versions: 19

Compression:

Stored size: 1.18 KB

Contents

<%= form_tag '', :method => :get, :id => 'sidebar_products_search' do  %>
  <% params[:search] ||= {} %>
  <input type="hidden" name="per_page" value="<%= params[:per_page] %>"/>

  <% filters = @taxon ? @taxon.applicable_filters : [ProductFilters.all_taxons] %>
  <% filters.each do |filter| %>
    <% labels = filter[:labels] || filter[:conds].map {|m,c| [m,m]} %>
    <% next if labels.empty? %>
    <div class="navigation">
      <span class="category"> <%= filter[:name] %> </span>
      <ul style="list-style-type:none; padding-left: 0px;" 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][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(:search), :name => nil %>
<% end %>

Version data entries

19 entries across 19 versions & 6 rubygems

Version Path
apispree_core-0.0.0 app/views/shared/_filters.html.erb
My-Commerce_core-1.1.0 app/views/shared/_filters.html.erb
My-Commerce_core-1.0.0 app/views/shared/_filters.html.erb
MyCommerceapi-1.0.0 core/app/views/shared/_filters.html.erb
MyCommerce-0.0.3 core/app/views/shared/_filters.html.erb
rfcommerce_core-0.0.3 app/views/shared/_filters.html.erb
spree_core-0.60.6 app/views/shared/_filters.html.erb
spree_core-0.60.5 app/views/shared/_filters.html.erb
spree_core-0.50.4 app/views/shared/_filters.html.erb
spree_core-0.60.4 app/views/shared/_filters.html.erb
spree_core-0.50.3 app/views/shared/_filters.html.erb
spree_core-0.60.3 app/views/shared/_filters.html.erb
spree_core-0.60.2 app/views/shared/_filters.html.erb
spree_core-0.60.1 app/views/shared/_filters.html.erb
spree_core-0.60.0 app/views/shared/_filters.html.erb
spree_core-0.60.0.RC1 app/views/shared/_filters.html.erb
spree_core-0.50.2 app/views/shared/_filters.html.erb
spree_core-0.50.1 app/views/shared/_filters.html.erb
spree_core-0.50.0 app/views/shared/_filters.html.erb