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

Product information

Product class: {{ product.product_class }}
{% 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 %} {% 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 %}

Category information

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

Images

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

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 cancel {% if product %} View on site {% endif %}
{% endblock dashboard_content %}