Template source: snippets/form_errors_as_alert.html

{% if errors %} <div class="alert alert-danger p-2 mb-1" role="alert"> <ul class="list-unstyled mb-0"> {% for error in errors %} <li>{{ error }}</li> {% endfor %} </ul> </div> {% endif %}