|
|
|
|
@ -4,7 +4,7 @@ |
|
|
|
|
{% if not category.hide_products and category.childs.all() %} |
|
|
|
|
<div class="category-filter-title">→ Категории</div> |
|
|
|
|
<ul class="attr-filter"> |
|
|
|
|
{% for child in category.childs.all() %} |
|
|
|
|
{% for child in category.childs.order_by('priority') %} |
|
|
|
|
<li> |
|
|
|
|
<a href="{{ child.get_absolute_url() }}">{{ child.title }}</a> |
|
|
|
|
</li> |
|
|
|
|
@ -15,7 +15,7 @@ |
|
|
|
|
|
|
|
|
|
<div class="category-filter-title">→ Производитель</div> |
|
|
|
|
<ul class="attr-filter"> |
|
|
|
|
{% for choise in category.brands() %} |
|
|
|
|
{% for choise in category.brands().order_by('title') %} |
|
|
|
|
<li> |
|
|
|
|
<label><input type="checkbox" name="brand[{{ loop.index0 }}]" value="{{ choise.pk }}" |
|
|
|
|
{% if choise.pk.__str__() in request.GET.getlist('brand[]') %} |
|
|
|
|
|