{% extends 'common.html' %} {% load static %} {% load crispy_forms_tags %} {% load core_tags %} {% load products_filters %} {% load product_tags %} {% load mptt_tags %} {% block breadcrumbs %} {% breadcrumb_url 'Главная страница' 'index:index' %} {% breadcrumb_url 'Каталог' 'products:product_list' %} {% if the_product_category %} {% if the_product_category.get_ancestors.exists %} {% recursetree the_product_category.get_ancestors %}
  • {{ node.name }}
  • {% if not node.is_leaf_node %} {{ children }} {% endif %} {% endrecursetree %} {% endif %} {% breadcrumb_url the_product_category.name 'products:product_list' the_product_category.get_path %} {% endif %} {% endblock breadcrumbs %} {% block extra_left_menu_items %} {% if left_product_filter_formset %}
    Фильтр товаров
    {% if left_product_filter_formset.price %} {% crispy left_product_filter_formset.price %} {% endif %}
    {% if left_product_filter_formset.manufacturer %}
    {% crispy left_product_filter_formset.manufacturer %}
    {% endif %} {% if left_product_filter_formset.supply_type %}
    {% crispy left_product_filter_formset.supply_type %}
    {% endif %} {% if left_product_filter_formset.supply_target %}
    {% crispy left_product_filter_formset.supply_target %}
    {% endif %}
    {% endif %} {% endblock extra_left_menu_items %} {% block right_common_content %}
    {% crispy product_sort_form %}
    {% for product in object_list %}
    {% if product.productimage_set.get_default_image %}
    {{ product.name }}
    {% endif %}
    {{ product.offer.get_price_with_discount }}{{ product.offer.currency.sign }}
    • Артикул:{{ product.offer.vendor_code }}
    • НДС:{{ product.offer.account_nds|apply_nds_status }}
    • Платформа:{{ product.platform }}
    • Тип поставки:{{ product.offer.supply_type.name }}
    • Срок поставки:{{ product.offer.supply_type.get_formatted_desc }}
    • Примечание:{{ product.offer.note }}
    {% if request.user.is_authenticated %}
    {% csrf_token %}
    {% endif %}
    {% empty %}
    На данный момент товары отсутсвуют, зайдите позже :))
    {% endfor %} {% if paginator.num_pages > 1 %} {% spaceless %} {% endspaceless %} {% endif %}
    {% endblock right_common_content %}