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.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.     <meta name="description" content="MSU Wassportal">
  8.     <meta name="keywords" content="">
  9.     <meta name="author" content="msu-solutions GmbH">
  10.     <title>
  11.         {% if app.session.get('texte') %}
  12.             {{ app.session.get('texte')["portalname"]|raw }}
  13.         {% else %}
  14.             Wasserportal
  15.         {% endif %}
  16.             {% block title %}
  17.             {% endblock %}
  18.     </title>
  19.     {% set appIcon = "/dist/images/logo.svg" %}
  20.     {% if app.session.get('favicon') %}
  21.         {% set appIcon = "/customerdata/"~ app.session.get('favicon') %}
  22.     {% endif %}
  23.     <!-- BEGIN: Favicon & App Icon-->
  24.     <link href="{{ asset( appIcon) }}" rel="shortcut icon">
  25.     <link rel="icon" type="image/png" href="{{ asset( appIcon) }}">
  26.     <!-- BEGIN: CSS Assets-->
  27.     <link rel="stylesheet" href="{{ asset('dist/css/app.css')}}" />
  28.     <link rel="stylesheet" href="{{ asset('css/custom.css')}}" />
  29.     <link rel="stylesheet" href="{{ asset('css/customer.css')}}" />
  30.     <link rel="stylesheet" type="text/css" href="{{ asset('/dist/plugins/DataTables/datatables.css')}}"/>
  31.     <script async defer src="{{ asset('js/altcha/altcha.min.js') }}" type="module"></script>
  32.     <!-- END: CSS Assets-->
  33.     {% block stylesheets %}
  34.         {{ encore_entry_link_tags('app') }}
  35.     {% endblock %}
  36.     {% block javascripts %}
  37.         {{ encore_entry_script_tags('app') }}
  38.     {% endblock %}
  39.     <!--<script src="https://cloud.ccm19.de/app.js?apiKey=26ba405af2c9574525ef8b006188e7b27b7e1043c7f5b068&amp;domain=649f0b7c743ab2b7df016ab2&amp;lang=de_DE" referrerpolicy="origin"></script>-->
  40.     <script src="{{ asset('/js/jquery-3.6.0.min.js')}}"></script>
  41.     <script src="{{ asset('/js/barrierefreiheit.js')}}"></script>
  42. </head>
  43. {% if (is_granted('ROLE_USER') or is_granted('ROLE_ADMIN')) and app.request.get('edit') == ""  %}
  44.     <body class="py-5 md:py-0 no-js">
  45.     <div class="loadingscreen hidden">
  46.         <i data-loading-icon="ball-triangle" class="w-8 h-8 text-white"></i>
  47.     </div>
  48.     <noscript>
  49.         <div class="-intro-y alert alert-danger text-left no-js-info" role="alert">
  50.             <p class="font-bold">Hinweis</p>
  51.             <p>JavaScript ist in Ihrem Browser deaktiviert. Um alle Funktionen dieser Webseite nutzen zu können, aktivieren Sie bitte JavaScript in Ihren Browsereinstellungen.</p>
  52.         </div>
  53.     </noscript>
  54.     {% for message in app.flashes('neu') %}
  55.         <div class="toastify on toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  56.             <div id="success-notification-content" class="toastify-content flex">
  57.                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
  58.                      stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
  59.                      icon-name="check-circle" class="lucide lucide-check-circle text-success"
  60.                      data-lucide="check-circle">
  61.                     <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  62.                     <polyline points="22 4 12 14.01 9 11.01"></polyline>
  63.                 </svg>
  64.                 <div class="ml-4 mr-4">
  65.                     <div class="font-medium">Info</div>
  66.                     <div class="text-slate-500 mt-1">{{ message }}</div>
  67.                 </div>
  68.             </div>
  69.             <span class="toast-close">✖</span></div>
  70.     {% endfor %}
  71.     {% for message in app.flashes('error') %}
  72.         <div class="toastify on  toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  73.             <div id="success-notification-content-2" class="toastify-content flex">
  74.                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
  75.                      stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
  76.                      icon-name="check-circle" class="lucide lucide-check-circle text-danger"
  77.                      data-lucide="x">
  78.                     <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  79.                     <polyline points="22 4 12 14.01 9 11.01"></polyline>
  80.                 </svg>
  81.                 <div class="ml-4 mr-4">
  82.                     <div class="font-medium">Info</div>
  83.                     <div class="text-slate-500 mt-1">{{ message }}</div>
  84.                 </div>
  85.             </div>
  86.             <span class="toast-close">✖</span></div>
  87.     {% endfor %}
  88.     {% include 'global/notifications.html.twig' %}
  89.     {% include 'menu/menu.html.twig' %}
  90. {% else %}
  91.     <body class="login no-js">
  92.     <div class="loadingscreen hidden">
  93.         <i data-loading-icon="ball-triangle" class="w-8 h-8 text-white"></i>
  94.     </div>
  95.     <noscript>
  96.         <div class="-intro-y alert alert-danger text-left no-js-info" role="alert">
  97.             <p class="font-bold">Hinweis</p>
  98.             <p>JavaScript ist in Ihrem Browser deaktiviert. Um alle Funktionen dieser Webseite nutzen zu können, aktivieren Sie bitte JavaScript in Ihren Browsereinstellungen.</p>
  99.         </div>
  100.     </noscript>
  101.     {% for message in app.flashes('neu') %}
  102.         <div class="toastify on toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  103.             <div id="success-notification-content" class="toastify-content flex">
  104.                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
  105.                      stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
  106.                      icon-name="check-circle" class="lucide lucide-check-circle text-success"
  107.                      data-lucide="check-circle">
  108.                     <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  109.                     <polyline points="22 4 12 14.01 9 11.01"></polyline>
  110.                 </svg>
  111.                 <div class="ml-4 mr-4">
  112.                     <div class="font-medium">Info</div>
  113.                     <div class="text-slate-500 mt-1">{{ message }}</div>
  114.                 </div>
  115.             </div>
  116.             <span class="toast-close">✖</span></div>
  117.     {% endfor %}
  118.     {% for message in app.flashes('error') %}
  119.         <div class="toastify on  toastify-right toastify-top" style="transform: translate(0px); top: 15px;">
  120.             <div id="success-notification-content-2" class="toastify-content flex">
  121.                 <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
  122.                      stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
  123.                      icon-name="check-circle" class="lucide lucide-check-circle text-danger"
  124.                      data-lucide="x">
  125.                     <path d="m²2 11.08V12a10 10 0 11-5.93-9.14"></path>
  126.                     <polyline points="22 4 12 14.01 9 11.01"></polyline>
  127.                 </svg>
  128.                 <div class="ml-4 mr-4">
  129.                     <div class="font-medium">Info</div>
  130.                     <div class="text-slate-500 mt-1">{{ message }}</div>
  131.                 </div>
  132.             </div>
  133.             <span class="toast-close">✖</span></div>
  134.     {% endfor %}
  135.     {% include 'global/notifications.html.twig' %}
  136. {% endif %}
  137.     {% block body %}{% endblock %}
  138.     {% if is_granted('ROLE_USER') or is_granted('ROLE_ADMIN') %}
  139.         </div>
  140.     {% endif %}
  141.     {% include 'cookie/cookie.html.twig' %}
  142.     {% include 'global/modal.html.twig' %}
  143.     {% include 'global/barrierefreiheit.html.twig' %}
  144.     {% include 'global/edittext.html.twig' %}
  145.     <script src="{{ asset('/dist/js/app.js')}}"></script>
  146.     <script src="{{ asset('/js/jquery-3.6.0.min.js')}}"></script>
  147.     <!-- END: JS Assets-->
  148.     <script type="text/javascript" src="{{ asset('/dist/plugins/DataTables/datatables.js')}}"></script>
  149.     <script type="text/javascript" src="{{ asset('/dist/plugins/DataTables/dataTables.fixedHeader.min.js')}}"></script>
  150.     {% block scripts %}
  151.     {% endblock %}
  152.     <script src="{{ asset('/js/chart.js')}}"></script>
  153.     <script src="{{ asset('/js/custom.js')}}"></script>
  154.     <script src="{{ asset('/js/utilities.js')}}"></script>
  155.     {# <script src="https://cloud.ccm19.de/app.js?apiKey=26ba405af2c9574525ef8b006188e7b27b7e1043c7f5b068&amp;domain=649f0b7c743ab2b7df016ab2&amp;lang=de_DE" referrerpolicy="origin"></script> #}
  156. </body>
  157. </html>