templates/visao/comuns/alertas.html.twig line 1

Open in your IDE?
  1. <div class="largura" id="notifications">
  2.     {% for message in app.flashes('error') %}
  3.         <div class="notification bg-danger animated fadeInRight delay-300ms">
  4.             <a href="#"><i class="fa fa-times close-notification"></i></a>
  5.             {{ message }}
  6.         </div>
  7.     {% endfor %}
  8.     {% for message in app.flashes('success') %}
  9.         <div class="notification bg-success animated fadeInRight delay-300ms">
  10.             <a href="#"><i class="fa fa-times close-notification"></i></a>
  11.             {{ message }}
  12.         </div>
  13.     {% endfor %}
  14.     {% for message in app.flashes('sucess') %}
  15.         <div class="notification bg-success animated fadeInRight delay-300ms">
  16.             <a href="#"><i class="fa fa-times close-notification"></i></a>
  17.             {{ message }}
  18.         </div>
  19.     {% endfor %}
  20.     {% for message in app.flashes('fail') %}
  21.         <div class="notification bg-danger animated fadeInRight delay-300ms">
  22.             <a href="#"><i class="fa fa-times close-notification"></i></a>
  23.             {{ message }}
  24.         </div>
  25.     {% endfor %}
  26.     {% for message in app.flashes('success_alert') %}
  27.         <script>
  28.             $(document).ready(function () {
  29.                 $.alert({
  30.                     // icon: 'fa fa-warning',
  31.                     title: null,
  32.                     content: '{{ message }}',
  33.                     type: 'green',
  34.                     buttons: {
  35.                         ok: {
  36.                             text: 'OK',
  37.                             btnClass: 'button green',
  38.                             keys: ['enter', 'esc'],
  39.                             action: function() {}
  40.                         }
  41.                     }
  42.                 });
  43.             });
  44.         </script>
  45.     {% endfor %}
  46. </div>