{% extends "shopit/base.html" %} {% load i18n shopit_tags %} {% block title %}{% trans "Products" %}{% endblock %} {% block content %} {# Filter by attributes #} {% get_attributes as attributes %} {% if attributes %} {% for attr in attributes %}

{{ attr }}

{% for choice in attr.get_choices %} {{ choice }}{% if not forloop.last %} | {% endif %} {% endfor %}

{% endfor %} {% endif %} {# Filter by price #} {% get_price_steps 3 as price_steps %} {% if price_steps %}

{% trans "Price from" %}

{% for step in price_steps %} {{ step }}{% if not forloop.last %} | {% endif %} {% endfor %}

{% trans "Price to" %}

{% for step in price_steps %} {{ step }}{% if not forloop.last %} | {% endif %} {% endfor %}

{% endif %} {% endblock %}