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

{% trans "Search Products" %}

{% comment %} Add the current query string to the search form so that the sort order is not reset when searching. {% endcomment %} {% for name, value in request.GET.items %} {% if name not in form.fields %} {% endif %} {% endfor %} {% include "partials/form_fields_inline.html" with form=form %}
{% endblock %} {% block create_product %}

{% trans "Create new product" %}

{% include "partials/form_fields_inline.html" with form=productclass_form %}
{% endblock %} {% if products %} {% block product_list %} {% block tabs %} {% endblock %}

{{ queryset_description }}

{% csrf_token %} {% block product_list_header %} {% endblock %} {% for product in products %} {% block product %} {% endblock product %} {% endfor %}
{% if 'recently_edited' in request.GET %}{% trans "Title" %} {% else %}{% anchor 'title' _("Title") %}{% endif %} {% trans "UPC" %} {% trans "Image" %} {% trans "Product Type" %} {% trans "Status" %} {% trans "Parent" %} {% trans "Children" %} {% trans "Stock records" %}
{{ product.get_title }} {{ 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_product_class.name }} {{ product.status|default:"-" }} {% if product.parent.id %} {{ product.parent.title }} {% else %} - {% endif %} {{ product.variants.count }} {{ product.stockrecords.count }}
{% include "partials/pagination.html" %}
{% endblock product_list %} {% else %}

{% trans "No products found." %}

{% endif %} {% endblock dashboard_content %}