{% load i18n %} {% load mtp_common %} {% load widget_tweaks %}

{{ form_title }}

{% include 'mtp_common/forms/error-summary.html' with form=form only %}
{% csrf_token %} {% for field in form.hidden_fields %} {{ field }} {% endfor %} {% for field in form.visible_fields %}
{% include 'mtp_common/forms/field-label.html' with field=field only %} {% include 'mtp_common/forms/field-errors.html' with field=field only %} {{ field|add_class:'form-control'|add_error_class:'form-control-error' }}
{% endfor %}
{% if cancel_url %} {% trans 'Cancel' %} {% endif %}