{% load i18n %} {% if form.is_bound and not form.is_valid or form.non_field_errors or form.non_form_errors %}
{% blocktrans %}The form contains errors. Please verify and correct the data in the fields in red and submit the form again.{% endblocktrans %} {% if form.non_field_errors %} {{ form.non_field_errors }} {% endif %} {% if form.non_form_errors %} {{ form.non_form_errors }} {% endif %}
{% endif %}