Sha256: 9d16e427db8a98b3f319e093e51e6a3dbe55b6dc8214616b96eedcb794444b5d
Contents?: true
Size: 1.16 KB
Versions: 6
Compression:
Stored size: 1.16 KB
Contents
<% filters = @taxon.applicable_filters %> <% 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
6 entries across 6 versions & 1 rubygems