{% load static %} {% comment %}Story 1.13 — product characteristics, a formset apart from ProductForm; works without JS (blank rows, « Ordre », « Supprimer »).{% endcomment %} {% if characteristic_formset %}
Caractéristiques
{{ characteristic_formset.management_form }}

Matière, dimensions, époque… Affichées sous la description, dans cet ordre.

{% for error in characteristic_formset.non_form_errors %}

{{ error }}

{% endfor %}
    {% for characteristic_form in characteristic_formset %} {% include "dashboard/ecommerce/_product_characteristic_row.html" with form=characteristic_form %} {% endfor %}

{% comment %}Labels other products already use, most used first (product_characteristics.get_known_labels).{% endcomment %} {% for known_label in known_label_list %}{% endfor %} {% comment %}SortableJS is loaded by the photos card; the script waits for DOMContentLoaded to find it.{% endcomment %}
{% endif %}