templates/base.html.twig line 1

  1. <!DOCTYPE html>
  2. <html lang="de" class="light">
  3. <!-- BEGIN: Head -->
  4. <head>
  5.     <meta charset="utf-8">
  6.     <link href="{{ asset('/dist/images/logo.svg')}}" rel="shortcut icon">
  7.     <meta name="viewport" content="width=device-width, initial-scale=1">
  8.     <meta name="description" content="MSU Demo Wassportal">
  9.     <meta name="keywords" content="">
  10.     <meta name="author" content="nvii-media GmbH">
  11.     <title>
  12.         {% if app.session.get('texte') %}
  13.             {{ app.session.get('texte')["portalname"]|raw }}
  14.         {% else %}
  15.             Wasserportal
  16.         {% endif %}
  17.             {% block title %}
  18.             {% endblock %}
  19.     </title>
  20.     <!-- BEGIN: CSS Assets-->
  21.     <link rel="stylesheet" href="{{ asset('dist/css/app.css')}}" />
  22.     <link rel="stylesheet" href="{{ asset('css/custom.css')}}" />
  23.     <link rel="stylesheet" href="{{ asset('css/customer.css')}}" />
  24.     <link rel="stylesheet" type="text/css" href="{{ asset('/dist/plugins/DataTables/datatables.css')}}"/>
  25.     <!-- END: CSS Assets-->
  26.     {% block stylesheets %}
  27.         {{ encore_entry_link_tags('app') }}
  28.     {% endblock %}
  29.     {% block javascripts %}
  30.         {{ encore_entry_script_tags('app') }}
  31.     {% endblock %}
  32.     <script src="https://cloud.ccm19.de/app.js?apiKey=26ba405af2c9574525ef8b006188e7b27b7e1043c7f5b068&amp;domain=649f0b7c743ab2b7df016ab2&amp;lang=de_DE" referrerpolicy="origin"></script>
  33.     <script src="{{ asset('/js/jquery-3.6.0.min.js')}}"></script>
  34.     <script src="{{ asset('/js/barrierefreiheit.js')}}"></script>
  35. </head>
  36. {% if (is_granted('ROLE_USER') or is_granted('ROLE_ADMIN')) and app.request.get('edit') == ""  %}
  37.     <body class="py-5 md:py-0">
  38.     <div class="loadingscreen hidden">
  39.         <i data-loading-icon="ball-triangle" class="w-8 h-8 text-white"></i>
  40.     </div>
  41.     {% for message in app.flashes('neu') %}
  42.         <div class="toastify on toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  43.             <div id="success-notification-content" class="toastify-content flex">
  44.                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
  45.                      stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
  46.                      icon-name="check-circle" class="lucide lucide-check-circle text-success"
  47.                      data-lucide="check-circle">
  48.                     <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  49.                     <polyline points="22 4 12 14.01 9 11.01"></polyline>
  50.                 </svg>
  51.                 <div class="ml-4 mr-4">
  52.                     <div class="font-medium">Info</div>
  53.                     <div class="text-slate-500 mt-1">{{ message }}</div>
  54.                 </div>
  55.             </div>
  56.             <span class="toast-close">✖</span></div>
  57.     {% endfor %}
  58.     {% for message in app.flashes('error') %}
  59.         <div class="toastify on  toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  60.             <div id="success-notification-content-2" class="toastify-content flex">
  61.                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
  62.                      stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
  63.                      icon-name="check-circle" class="lucide lucide-check-circle text-danger"
  64.                      data-lucide="x">
  65.                     <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  66.                     <polyline points="22 4 12 14.01 9 11.01"></polyline>
  67.                 </svg>
  68.                 <div class="ml-4 mr-4">
  69.                     <div class="font-medium">Info</div>
  70.                     <div class="text-slate-500 mt-1">{{ message }}</div>
  71.                 </div>
  72.             </div>
  73.             <span class="toast-close">✖</span></div>
  74.     {% endfor %}
  75.     {% include 'menu/menu.html.twig' %}
  76. {% else %}
  77.     <body class="login">
  78.     <div class="loadingscreen hidden">
  79.         <i data-loading-icon="ball-triangle" class="w-8 h-8 text-white"></i>
  80.     </div>
  81.     {% for message in app.flashes('neu') %}
  82.         <div class="toastify on toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  83.             <div id="success-notification-content" class="toastify-content flex">
  84.                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
  85.                      stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
  86.                      icon-name="check-circle" class="lucide lucide-check-circle text-success"
  87.                      data-lucide="check-circle">
  88.                     <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  89.                     <polyline points="22 4 12 14.01 9 11.01"></polyline>
  90.                 </svg>
  91.                 <div class="ml-4 mr-4">
  92.                     <div class="font-medium">Info</div>
  93.                     <div class="text-slate-500 mt-1">{{ message }}</div>
  94.                 </div>
  95.             </div>
  96.             <span class="toast-close">✖</span></div>
  97.     {% endfor %}
  98.     {% for message in app.flashes('error') %}
  99.         <div class="toastify on  toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  100.             <div id="success-notification-content-2" class="toastify-content flex">
  101.                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
  102.                      stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
  103.                      icon-name="check-circle" class="lucide lucide-check-circle text-danger"
  104.                      data-lucide="x">
  105.                     <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  106.                     <polyline points="22 4 12 14.01 9 11.01"></polyline>
  107.                 </svg>
  108.                 <div class="ml-4 mr-4">
  109.                     <div class="font-medium">Info</div>
  110.                     <div class="text-slate-500 mt-1">{{ message }}</div>
  111.                 </div>
  112.             </div>
  113.             <span class="toast-close">✖</span></div>
  114.     {% endfor %}
  115. {% endif %}
  116.     {% block body %}{% endblock %}
  117. {% if is_granted('ROLE_USER') or is_granted('ROLE_ADMIN') %}
  118.     </div>
  119. {% endif %}
  120.     {% include 'global/modal.html.twig' %}
  121.     {% include 'global/barrierefreiheit.html.twig' %}
  122.     {% include 'global/edittext.html.twig' %}
  123.     <script src="{{ asset('/dist/js/app.js')}}"></script>
  124.     <script src="{{ asset('/js/jquery-3.6.0.min.js')}}"></script>
  125.     <!-- END: JS Assets-->
  126.     <script type="text/javascript" src="{{ asset('/dist/plugins/DataTables/datatables.js')}}"></script>
  127.     <script type="text/javascript" src="{{ asset('/dist/plugins/DataTables/dataTables.fixedHeader.min.js')}}"></script>
  128.     {% block scripts %}
  129.     {% endblock %}
  130.     <script src="{{ asset('/js/chart.js')}}"></script>
  131.     <script src="{{ asset('/js/custom.js')}}"></script>
  132.     <script src="{{ asset('/js/utilities.js')}}"></script>
  133. </body>
  134. </html>