{% load crispy_forms_tags %} {% load crispy_forms_utils %} {% load crispy_forms_field %} {% specialspaceless %} {% if formset_tag %}
{% endif %} {% if formset_method|lower == 'post' and not disable_csrf %} {% csrf_token %} {% endif %}
{{ formset.management_form|crispy }}
{% if formset.readonly and not formset.queryset.exists %} {% else %} {% for field in formset.forms.0 %} {% if field.label and not field.is_hidden %} {{ field.label|safe }}{% if field.field.required and not field|is_checkbox %}*{% endif %} {% endif %} {% endfor %} {% endif %} {% for form in formset %} {% if form_show_errors and not form.is_extra %} {% include "bootstrap/errors.html" %} {% endif %} {% for field in form %} {% include 'bootstrap/field.html' with tag="th" form_show_labels=False %} {% endfor %} {% endfor %} {% if inputs %}
{% for input in inputs %} {% include "bootstrap/layout/baseinput.html" %} {% endfor %}
{% endif %} {% if formset_tag %}{% endif %} {% endspecialspaceless %}