templates/_flash-messages.html.twig line 1

Open in your IDE?
  1. {% for type,flash_messages in app.session.flashBag.all %}
  2.   {% for message in flash_messages %}
  3.     <div class="alert alert-{{ type }} t-center {% if fixed is defined and fixed == 'true' %}fixed{% else %}animated {% if type == 'success' %}zoomIn{% else %}shake{% endif %}{% endif %} fs-14">
  4.       {% if type == 'success' %}
  5.         <i class="fa fa-check-circle-o mr-1" aria-hidden="true"></i>
  6.       {% elseif type == 'warning' %}
  7.         <i class="fa fa-info-circle mr-1" aria-hidden="true"></i>
  8.       {% elseif type == 'danger' %}
  9.         <i class="fa fa-exclamation-circle mr-1" aria-hidden="true"></i>
  10.       {% endif %}
  11.       {{ message|raw }}
  12.     </div>
  13.   {% endfor %}
  14. {% endfor %}
  15. {% if form is defined and form_errors(form) %}
  16.   <div class="alert alert-danger t-center animated shake fs-14">
  17.     <i class="fa fa-exclamation-circle mr-1" aria-hidden="true"></i>
  18.     {{ form_errors(form) }}
  19.   </div>
  20. {% endif %}
  21. {% if error is defined and error is not null%}
  22.   <div class="alert alert-danger t-center animated shake fs-14">
  23.     <i class="fa fa-exclamation-circle mr-1" aria-hidden="true"></i>
  24.     {% if error.message == "Bad credentials." %}
  25.       Wpisałeś błędny e-mail lub hasło. Spróbuj ponownie.
  26.     {% elseif error.message == "User account is disabled." %}
  27.       Twoje konto jest nieaktywne.
  28.     {% else %}
  29.       {{ error.message }}
  30.     {% endif %}
  31.   </div>
  32. {% endif %}