templates/partials/_toast.html.twig line 1
<div class="toast-container position-fixed bottom-0 end-0 p-3">
{% for message in app.flashes('badge') %}
<div class="toast " role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
<div class="toast-header bg-primary text-white">
<strong class="ms-2 me-auto">
Nouveau badge obtenu</strong>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body bg-white">
Vous venez d'obtenir le badge
<strong>{{message}}</strong>
!
</div>
</div>
{% endfor %}
{% for message in app.flashes('success') %}
<div class="toast " role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
<div class="toast-header bg-terminated text-white">
<strong class="ms-2 me-auto">
Succès</strong>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body bg-terminated text-white">{{message}}
</div>
</div>
{% endfor %}
{% for message in app.flashes('danger') %}
<div class="toast " role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
<div class="toast-header bg-late text-white">
<strong class="ms-2 me-auto">
Erreur</strong>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body bg-late text-white">{{message}}
</div>
</div>
{% endfor %}
</div>
<template id="toast-template">
<div class="toast " role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
<div class="toast-header bg-primary text-white">
<strong class="ms-2 me-auto toast-title"></strong>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body bg-white toast-message"></div>
</div>
</template>
<template id="toast-success-template">
<div class="toast " role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
<div class="toast-header bg-terminated text-white">
<strong class="ms-2 me-auto toast-title"></strong>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body bg-terminated text-white toast-message"></div>
</div>
</template>
<template id="toast-danger-template">
<div class="toast " role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="5000">
<div class="toast-header bg-late text-white">
<strong class="ms-2 me-auto toast-title"></strong>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body bg-late text-white toast-message"></div>
</div>
</template>