app/template/admin/alert.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% for message in app.flashes('eccube.admin.info') %}
  9.     <script>
  10.         $(function() {
  11.           var Toast = Swal.mixin({
  12.             toast: true,
  13.             position: 'top-end',
  14.             showConfirmButton: false,
  15.             timer: 5000
  16.           });
  17.           Toast.fire({
  18.             icon: 'info',
  19.             title: '{{ message|trans }}'
  20.           });
  21.         });
  22.     </script>
  23. {% endfor %}
  24. {% for message in app.flashes('eccube.admin.success') %}
  25.     <script>
  26.         $(function() {
  27.           var Toast = Swal.mixin({
  28.             toast: true,
  29.             position: 'top-end',
  30.             showConfirmButton: false,
  31.             timer: 5000
  32.           });
  33.           Toast.fire({
  34.             icon: 'success',
  35.             title: '{{ message|trans }}'
  36.           });
  37.         });
  38.     </script>
  39. {% endfor %}
  40. {% for message in app.flashes('eccube.admin.danger') %}
  41.     <script>
  42.         $(function() {
  43.           var Toast = Swal.mixin({
  44.             toast: true,
  45.             position: 'top-end',
  46.             showConfirmButton: false,
  47.             timer: 5000
  48.           });
  49.           Toast.fire({
  50.             icon: 'error',
  51.             title: '{{ message|trans }}'
  52.           });
  53.         });
  54.     </script>
  55. {% endfor %}
  56. {% for message in app.flashes('eccube.admin.error') %}
  57.     <script>
  58.         $(function() {
  59.           var Toast = Swal.mixin({
  60.             toast: true,
  61.             position: 'top-end',
  62.             showConfirmButton: false,
  63.             timer: 5000
  64.           });
  65.           Toast.fire({
  66.             icon: 'error',
  67.             title: '{{ message|trans }}'
  68.           });
  69.         });
  70.     </script>
  71. {% endfor %}
  72. {% for message in app.flashes('eccube.admin.warning') %}
  73.     <script>
  74.         $(function() {
  75.           var Toast = Swal.mixin({
  76.             toast: true,
  77.             position: 'top-end',
  78.             showConfirmButton: false,
  79.             timer: 5000
  80.           });
  81.           Toast.fire({
  82.             icon: 'warning',
  83.             title: '{{ message|trans }}'
  84.           });
  85.         });
  86.     </script>
  87. {% endfor %}