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

Product information

{% trans "Product class" %}: {{ product_class.name }}
{{ form.non_field_errors }} {% for field in form %} {% if forloop.counter > 4 %}
{% if field.is_hidden %} {{ field }} {% else %} {{ field.label_tag }} {{ field }} {% for error in field.errors %}
  • {{ error|escape }}
{% endfor %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %} {% endif %}
{% else %}
{% if field.is_hidden %} {{ field }} {% else %} {{ field.label_tag }}
{{ field }} {% for error in field.errors %} {{ error|escape }} {% endfor %} {% if field.help_text %} {{ field.help_text }} {% endif %}
{% endif %}
{% endif %} {% endfor %}

{% trans "Category information" %}

{% blocktrans %}The first category in this list is the "primary" category for the product, and will be the one displayed in the site breadcrumb trail. {% endblocktrans %}

{{ category_formset.management_form }} {{ category_formset.non_form_errors }} {% for category_form in category_formset %} {% include "partials/form_fields_inline.html" with form=category_form %}
{% endfor %}

{% trans "Images" %}

{{ image_formset.management_form }} {% for image_form in image_formset %} {% include "partials/form_fields_inline.html" with form=image_form %}
{% endfor %}

{% trans "Stock and price information" %}

{% block stockrecord_form %}
{{ stockrecord_form.non_field_errors }} {% for field in stockrecord_form %}
{% if field.is_hidden %} {{ field }} {% else %} {{ field.label_tag }}
{{ field }} {% for error in field.errors %} {{ error|escape }} {% endfor %} {% if field.help_text %} {{ field.help_text }} {% endif %}
{% endif %}
{% endfor %}
{% endblock %}
or {% trans "cancel" %} {% if product %} {% trans "View on site" %} {% endif %}
{% endblock dashboard_content %}