-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e248b62
commit a48a925
Showing
1 changed file
with
25 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
<%= form_tag '', :method => :get, :id => 'sidebar_products_search' do %> | ||
<% @filters.each do |filter| %> | ||
<div class="submenu navigation taxonfilter" data-hook="navigation"> | ||
<h4 class="filter-title"> <%= filter.property.presentation %> </h4> | ||
<ul class="checkboxes"> | ||
<% filter.options.each do |filter_option| %> | ||
<li> | ||
<label class="checkbox-label" for="<%= filter_option.value.parameterize %>"> | ||
<input type="checkbox" | ||
id="<%= filter_option.value.parameterize %>" | ||
name="<%= filter_option.property.name %>[]" | ||
value="<%= filter_option.value %>" | ||
<%= ' checked' if params[filter_option.property.name].try(:include?, filter_option.value) %>/> | ||
<span> | ||
<%= filter_option.value %> | ||
<span class="amount"> (<%= filter_option.number_of_products %>)</span> | ||
</span> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% unless @filters.empty? %> | ||
<%= form_tag '', :method => :get, :id => 'sidebar_products_search' do %> | ||
<% @filters.each do |filter| %> | ||
<div class="submenu navigation taxonfilter" data-hook="navigation"> | ||
<h4 class="filter-title"> <%= filter.property.presentation %> </h4> | ||
<ul class="checkboxes"> | ||
<% filter.options.each do |filter_option| %> | ||
<li> | ||
<label class="checkbox-label" for="<%= filter_option.value.parameterize %>"> | ||
<input type="checkbox" | ||
id="<%= filter_option.value.parameterize %>" | ||
name="<%= filter_option.property.name %>[]" | ||
value="<%= filter_option.value %>" | ||
<%= ' checked' if params[filter_option.property.name].try(:include?, filter_option.value) %>/> | ||
<span> | ||
<%= filter_option.value %> | ||
<span class="amount"> (<%= filter_option.number_of_products %>)</span> | ||
</span> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% end %> | ||
<%= button_tag t(:filter), :class => 'button button-filter' %> | ||
<% end %> | ||
<%= button_tag t(:filter), :class => 'button button-filter' %> | ||
<% end %> | ||
<% end %> |