{% extends 'dashboard/layout.html' %} {% load currency_filters %} {% load i18n %} {% load thumbnail %} {% block body_class %}catalogue{% endblock %} {% block title %} {% trans "Product management" %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %} {% endblock header %} {% block dashboard_content %}

{% trans "Search Products" %}

{% include "partials/form_fields_inline.html" with form=form %}

{% trans "Create new product" %}

{% if products %}

{{ queryset_description }}

{% csrf_token %} {% for product in products %} {% with stockrecord=product.stockrecord %} {% endwith %} {% endfor %}
{% trans "UPC" %} {% trans "Image" %} {% trans "Title" %} {% trans "Product class" %} {% trans "Status" %} {% trans "Partner" %} {% trans "Partner SKU" %} {% trans "Price excl. tax" %} {% trans "Price incl. tax" %} {% trans "Number in stock" %} {% trans "Number allocated" %} {% trans "Parent" %} {% trans "Children" %}
{{ product.upc|default:"-" }} {% if product.primary_image.original.url %} {% with image=product.primary_image %} {% thumbnail image.original "70x70" upscale=False as thumb %} {{ product.get_title }} {% endthumbnail %} {% endwith %} {% else %} - {% endif %} {{ product.get_title }} {{ product.product_class.name }} {{ product.status|default:"-" }}{{ stockrecord.partner.name }} {{ stockrecord.partner_sku }} {{ stockrecord.price_excl_tax|currency }} {{ stockrecord.price_incl_tax|currency }} {{ stockrecord.num_in_stock }} {{ stockrecord.num_allocated }} {% if product.parent.id %} {{ product.parent.title }} {% else %} - {% endif %} {{ product.variants.count }}
{% include "partials/pagination.html" %}
{% else %}

{% trans "No products found." %}

{% endif %} {% endblock dashboard_content %}