{% load i18n %} {% load lfs_tags %}
{% trans 'Filter' %} [x]
{% for property_group in product_filters %} {% if property_group.items %}
{{property_group.name}} {% if property_group.show_reset %} [x] {% endif %}
{% for property in property_group.items %}
{% if property_group.object.is_number_field %} {% if property_group.show_quantity %} {{property.min|quantity}} - {{property.max|quantity}} {{ property_group.unit|safe }} ({{ property.quantity }}) {% else %} {{property.min|quantity}} - {{property.max|quantity}} {{ property_group.unit|safe }} {% endif %} {% else %} {% if property.show_quantity %} {{property.name}} {{ property_group.unit|safe }} ({{ property.quantity }}) {% else %} {{property.name}} {{ property_group.unit|safe }} {% endif %} {% endif %}
{% endfor %}
{% endif %} {% endfor %}
{% trans 'Price' %} {% if price_filters.show_reset %} [x] {% endif %}
{% for price_filter in price_filters.items %}
{% if price_filters.show_quantity %} {% trans 'Up to' %} {{price_filter.max|number}} ({{price_filter.quantity}}) {% else %} {% trans 'Up to' %} {{price_filter.max|currency}} {% endif %}
{% endfor %}
{#
#} {#
#} {# #} {# #} {#
#} {#
#} {# #} {# #} {#
#} {#
#} {# #} {#
#} {#
#}