templates/flashmessages/flashmessages.html.twig line 1

Open in your IDE?
  1.     {% for message in app.flashes('primary') %}
  2.     <div class="alert alert-primary alert-dismissible fade show" role="alert">
  3.         <span class="alert-inner--icon"><i class="fas fa-trophy"></i></span>
  4.         <span class="alert-inner--text"><strong>Succès</strong> {{ message }}</span>
  5.         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  6.             <span aria-hidden="true">&times;</span>
  7.         </button>
  8.     </div>
  9.     {% endfor %}
  10.     {% for message in app.flashes('secondary') %}
  11.     <div class="alert alert-secondary alert-dismissible fade show" role="alert">
  12.         <span class="alert-inner--icon"><i class="fas fa-check"></i></span>
  13.         <span class="alert-inner--text"><strong>Succès</strong> {{ message }}</span>
  14.         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  15.             <span aria-hidden="true">&times;</span>
  16.         </button>
  17.     </div>
  18.     {% endfor %}
  19.     {% for message in app.flashes('success') %}
  20.     <div class="alert alert-success alert-dismissible fade show" role="alert">
  21.         <span class="alert-inner--icon"><i class="far fa-thumbs-up"></i></span>
  22.         <span class="alert-inner--text"><strong>Succès</strong> {{ message }}</span>
  23.         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  24.             <span aria-hidden="true">&times;</span>
  25.         </button>
  26.     </div>
  27.     {% endfor %}
  28.     {% for message in app.flashes('info') %}
  29.     <div class="alert alert-info alert-dismissible fade show" role="alert">
  30.         <span class="alert-inner--icon"><i class="far fa-bell"></i></span>
  31.         <span class="alert-inner--text"><strong>Information</strong> {{ message }}</span>
  32.         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  33.             <span aria-hidden="true">&times;</span>
  34.         </button>
  35.     </div>
  36.     {% endfor %}
  37.     {% for message in app.flashes('warning') %}
  38.     <div class="alert alert-warning alert-dismissible fade show" role="alert">
  39.         <span class="alert-inner--icon"><i class="fas fa-exclamation-circle"></i></span>
  40.         <span class="alert-inner--text"><strong>Attention!</strong> {{ message }}</span>
  41.         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  42.             <span aria-hidden="true">&times;</span>
  43.         </button>
  44.     </div>
  45.     {% endfor %}
  46.     {% for message in app.flashes('danger') %}
  47.     <div class="alert alert-danger alert-dismissible fade show" role="alert">
  48.         <span class="alert-inner--icon"><i class="fas fa-hand-paper"></i></span>
  49.         <span class="alert-inner--text"><strong>Erreur</strong> {{ message }}</span>
  50.         <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  51.             <span aria-hidden="true">&times;</span>
  52.         </button>
  53.     </div>
  54.     {% endfor %}