{% load i18n %}
{% if matrix.criteria %}

{{ matrix.criteria.label }}

{% endif %}
{% csrf_token %} {{ form.management_form }} {% if matrix.rows.0.cells.0.criteria %} {% for cell in matrix.rows.0.cells %} {% endfor %} {% endif %} {% for sub_form in form %} {% with row=matrix.rows|get:forloop.counter0 %} {% for field in sub_form %} {% endfor %} {% endwith %} {% endfor %}
{{ cell.criteria.label }}
{{ row.criteria.label }} {{ field.errors.as_ul }} {{ field }}
{% trans 'Cancel' %}