{% load i18n forms %}
{% block above-table %}{% endblock %} {{ formset.management_form }} {% block inline-formset-table %} {% if formset.all_forms %} {% block inline-formset-not-empty %} {% for form in formset.all_forms %} {% if forloop.first %} {% block inline-thead %} {% for field_name in fields %} {% get_field form field_name as field %} {% if not field.is_hidden %} {% endif %} {% endfor %} {% endblock %} {% endif %} {% block inline-formset-before-field %} {% endblock %} {% get_visible_fields form fields as visible_fields %} {% for field in visible_fields %} {% endfor %} {% block inline-formset-after-field %} {% endblock %} {% if forloop.last %} {% block inline-formset-last %} {% endblock %} {% endif %} {% endfor %} {% endblock %} {% elif not formset.can_add %} {% block inline-formset-empty %} {% endblock %} {% endif %}
{{ field.label|capfirst }} {% if field.field.required %} * {% endif %}
{# Include the hidden fields in the form #} {% if forloop.first %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {{ form.non_field_errors }} {% endif %} {{ field }}{% block next-to-field %}{% endblock %} {{ field.errors.as_ul }}
{{ no_items_text }}
{% endblock %} {% block below-table %} {% if formset.can_add %}{% endif %} {% endblock %}