templates/backend/default/flash_messages.html.twig line 1

Open in your IDE?
  1. {% block flash_messages %}
  2.     {# Mensajes Flash #}
  3.     {% for flashMessage in app.session.flashbag.get('success') %}
  4.         <script type="text/javascript">
  5.             $(document).ready(function(){
  6.                 helpers.createNotification('success', "{{flashMessage}}");
  7.             });
  8.         </script>
  9.     {% endfor %}
  10.     {% for flashMessage in app.session.flashbag.get('error') %}
  11.         <script type="text/javascript">
  12.             $(document).ready(function(){
  13.                 helpers.createNotification('error', "{{flashMessage}}");
  14.             });
  15.         </script>
  16.     {% endfor %}
  17.     {% for flashMessage in app.session.flashbag.get('info') %}
  18.         <script type="text/javascript">
  19.             $(document).ready(function(){
  20.                 helpers.createNotification('info', "{{flashMessage}}");
  21.             });
  22.         </script>
  23.     {% endfor %}
  24.     {% for flashMessage in app.session.flashbag.get('warning') %}
  25.         <script type="text/javascript">
  26.             $(document).ready(function(){
  27.                 helpers.createNotification('warning', "{{flashMessage}}");
  28.             });
  29.         </script>
  30.     {% endfor %}
  31. {% endblock %}