templates/bundles/EasyAdminBundle/flash_messages.html.twig line 1
{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
{# This template checks for 'ea' variable existence because it can
be used in a EasyAdmin Dashboard controller, where 'ea' is defined
or from any other Symfony controller, where 'ea' is not defined #}
{% trans_default_domain ea is defined ? ea.i18n.translationDomain : (translation_domain is defined ? translation_domain ?? 'messages') %}
{% set flash_messages = app.flashes %}
{% if flash_messages|length > 0 %}
<div id="flash-messages">
{% for label, messages in flash_messages %}
{% for message in messages %}
<div class="alert alert-{{ label }} alert-dismissible fade show" role="alert">
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
{{ message|trans|raw }}
</div>
{% endfor %}
{% endfor %}
</div>
{% endif %}