{% extends 'oscar/dashboard/layout.html' %} {% load i18n %} {% load render_table from django_tables2 %} {% load sorting_tags %} {% block body_class %}{{ block.super }} catalogue{% endblock %} {% block title %} {% trans "Products" %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %} {% endblock header %} {% block dashboard_content %} {% block create_product %}

{% trans "Create new product" %}

{% include "oscar/dashboard/partials/form_fields_inline.html" with form=productclass_form %}
{% endblock %} {% 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 "oscar/dashboard/partials/form_fields_inline.html" with form=form %}
{% endblock %} {% if products %} {% block product_list %}
{% csrf_token %} {% render_table products %}
{% endblock product_list %} {% else %}

{% trans "No products found." %}

{% endif %} {% endblock dashboard_content %} {% block onbodyload %} {{ block.super }} oscar.dashboard.product_lists.init(); {% endblock onbodyload %}