{% load i18n ui %}{% comment %}
Error summary at the top of a form: the number of problems and a link to each field.
Parameter: form. Shown only when the form has errors; gets focus from ui.js.
{% endcomment %}
{% if form.errors %}
{% icon "error" %}
{% blocktranslate count counter=form.errors|length trimmed %}There is {{ counter }} problem with the form{% plural %}There are {{ counter }} problems with the form{% endblocktranslate %}
{% for error in form.non_field_errors %}
{{ error }}
{% endfor %}
{% for field in form %}{% if field.errors %}