templates/main/alerts.html.twig line 1

Open in your IDE?
  1. <div class="row col-4 mx-auto justify-content-center">
  2.     {% if error is defined and error %}
  3.     <div id="alertBox" class="alert alert-danger alert-dismissible fade show" role="alert">
  4.         <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  5.         {% if error is iterable %}
  6.             {{ error.messageKey | trans(error.messageData, 'security') }}
  7.         {% else %}
  8.             {{ error }}
  9.         {% endif %}
  10.     </div>
  11.     {% endif %}
  12.     
  13.     {% if info is defined and info is not empty %}
  14.     <div id="alertBox" class="alert alert-info alert-dismissible fade show" role="alert">
  15.         <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  16.         {{ info | trans }}
  17.     </div>
  18.     {% endif %}
  19. </div>