templates/global/notifications.html.twig line 1

  1. {# Erfolgsmeldung #}
  2. {% for message in app.flashes('neu') %}
  3.     <div class="toastify on toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  4.         <div id="success-notification-content" class="toastify-content flex">
  5.             <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" icon-name="check-circle" class="lucide lucide-check-circle text-success" data-lucide="check-circle">
  6.                 <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  7.                 <polyline points="22 4 12 14.01 9 11.01"></polyline>
  8.             </svg>
  9.             <div class="ml-4 mr-4">
  10.                 <div class="font-medium">Info</div>
  11.                 <div class="text-slate-500 mt-1">{{ message }}</div>
  12.             </div>
  13.         </div>
  14.         <span class="toast-close">✖</span>
  15.     </div>
  16. {% endfor %}
  17. {# Fehlermeldung #}
  18. {% for message in app.flashes('error') %}
  19.     <div class="toastify on toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  20.         <div id="success-notification-content-2" class="toastify-content flex">
  21.             <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" icon-name="check-circle" class="lucide lucide-check-circle text-danger" data-lucide="x">
  22.                 <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  23.                 <polyline points="22 4 12 14.01 9 11.01"></polyline>
  24.             </svg>
  25.             <div class="ml-4 mr-4">
  26.                 <div class="font-medium">Info</div>
  27.                 <div class="text-slate-500 mt-1">{{ message }}</div>
  28.             </div>
  29.         </div>
  30.         <span class="toast-close">✖</span>
  31.     </div>
  32. {% endfor %}