{% comment %} Modified version of the django-crispy-forms alert.html: https://github.com/django-crispy-forms/crispy-bootstrap5/blob/main/crispy_bootstrap5/templates/bootstrap5/layout/alert.html This version adds ``{{ alert.flat_attrs|safe }}`` to the alert's div to support additional parameters like ``role`` or ``data-bs-dismiss``. {% endcomment %} {% if dismiss %}{% endif %} {{ content|safe }}