{% block js %} {% endblock %} {% if form.errors %} {% for form_element in form.fields.values %} {% for error, message in form_element.error_messages.items %}