{% load common_filters %} {% load common_form_filters %} {% load common_tags %} {% load i18n %} {# Also used in errors.html #} {% trans "Check your data, there is one error" as one_error_text %} {% block form_start %} {% capture as messages_var %}FORM_MESSAGES_{{ form.prefix|default:"default"|upper }}{% endcapture %} {% trans 'Close form? Changes that you made may not be saved.' as default_close_warning_text %}
{% csrf_token %} {% endblock form_start %} {% if form %} {% block form_header %} {% include "common/form/header.html" %} {% endblock form_header %} {% if show_required|default_if_none:True %} {% capture as required_star %} {% endcapture %} {% endif %} {% block form_fields %} {% if multi_form_layout %} {% with groups=multi_form_layout.get_groups %} {% include "common/form/layout_groups.html" %} {% endwith %} {% else %} {% if form|type_name == "list" %} {% for form_instance in form %} {% include "common/form/form_fields.html" with form=form_instance %} {% endfor %} {% else %} {% include "common/form/form_fields.html" %} {% endif %} {% endif %} {% endblock form_fields %} {% endif %} {% block form_footer %} {% include "common/form/footer.html" %} {% endblock form_footer %}

{% block form_end %}
{% endblock form_end %}