{# Builds a list of errors for the current form. errors - A dict of field/message pairs. type - The alert-* class that should be applied (default: "error") classes - A list of classes to apply to the wrapper (default: []) Example: {% import 'macros/form.html' as form %} {{ form.errors(error_summary, type="warning") }} #} {% macro errors(errors={}, type="error", classes=[]) %} {% if errors %}
{{ _('The form contains invalid entries:') }}