templates/login/index.html.twig line 1

  1. {# templates/login/index.html.twig #}
  2. {% extends 'base.html.twig' %}
  3. {% block body %}
  4. <div class="container sm:px-10">
  5.     <div class="block xl:grid grid-cols-2 gap-4">
  6.         <!-- BEGIN: Login Info -->
  7.         <div class="hidden xl:flex flex-col min-h-screen">
  8.             <a href="/" class="-intro-x flex items-center pt-5">
  9.                 <span class="text-white text-lg"><span class="{% if is_granted('ROLE_ADMIN') %} customText {% else %} loadText {% endif %}" data-key="login-10">{{ texte["login-10"] }}</span></span>
  10.             </a>
  11.             <div class="my-auto">
  12.                 {% include 'global/logos-login-links.html.twig' %}
  13.                 
  14.                 <div class="-intro-x text-white font-medium text-3xl leading-tight {% if is_granted('ROLE_ADMIN') %} customText {% else %} loadText {% endif %}" data-key="login-0">
  15.                     {{ texte["login-0"]|raw }}
  16.                 </div>
  17.                 <div class="-intro-x mt-5 text-white text-opacity-70 dark:text-slate-400">
  18.                     <div class="text-lg">
  19.                         <span class="{% if is_granted('ROLE_ADMIN') %} customText {% else %} loadText {% endif %}" data-key="login-1">{{ texte["login-1"]|raw }}</span>
  20.                         <br>
  21.                         <br>
  22.                         <span class="{% if is_granted('ROLE_ADMIN') %} customText {% else %} loadText {% endif %}" data-key="login-2">
  23.                             {{ texte["login-2"]|raw }}
  24.                         </span>
  25.                     </div>
  26.                     <div class="mt-5">
  27.                         {% if "login-3" in texte|keys and texte["login-3"] is not empty %}
  28.                             <p class="flex items-center py-1 rounded-md"> <i class="w-4 h-4 mr-2" data-lucide="star"></i> <span class="{% if is_granted('ROLE_ADMIN') %}customText{% else %} loadText {% endif %}" data-key="login-3">{{ texte["login-3"]|raw }}</span></p>
  29.                         {% endif %}
  30.                         {% if "login-4" in texte|keys and texte["login-4"] is not empty %}
  31.                             <p class="flex items-center py-1 rounded-md"> <i class="w-4 h-4 mr-2" data-lucide="star"></i> <span class="{% if is_granted('ROLE_ADMIN') %}customText{% else %} loadText {% endif %}" data-key="login-4">{{ texte["login-4"]|raw }}</span></p>
  32.                         {% endif %}
  33.                         {% if "login-5" in texte|keys and texte["login-5"] is not empty %}
  34.                             <p class="flex items-center py-1 rounded-md"> <i class="w-4 h-4 mr-2" data-lucide="star"></i> <span class="{% if is_granted('ROLE_ADMIN') %}customText{% else %} loadText {% endif %}" data-key="login-5">{{ texte["login-5"]|raw }}</span></p>
  35.                         {% endif %}
  36.                         {% if "login-6" in texte|keys and texte["login-6"] is not empty %}
  37.                             <p class="flex items-center py-1 rounded-md"> <i class="w-4 h-4 mr-2" data-lucide="star"></i> <span class="{% if is_granted('ROLE_ADMIN') %}customText{% else %} loadText {% endif %}" data-key="login-6">{{ texte["login-6"]|raw }}</span></p>
  38.                         {% endif %}
  39.                         {% if "login-7" in texte|keys and texte["login-7"] is not empty %}
  40.                             <p class="flex items-center py-1 rounded-md"> <i class="w-4 h-4 mr-2" data-lucide="star"></i> <span class="{% if is_granted('ROLE_ADMIN') %}customText{% else %} loadText {% endif %}" data-key="login-7">{{ texte["login-7"]|raw }}</span></p>
  41.                         {% endif %}
  42.                         {% if "login-8" in texte|keys and texte["login-8"] is not empty %}
  43.                             <p class="flex items-center py-1 rounded-md"> <i class="w-4 h-4 mr-2" data-lucide="star"></i> <span class="{% if is_granted('ROLE_ADMIN') %}customText{% else %} loadText {% endif %}" data-key="login-8">{{ texte["login-8"]|raw }}</span></p>
  44.                         {% endif %}
  45.                         {% if "login-9" in texte|keys and texte["login-9"] is not empty %}
  46.                             <p class="flex items-center py-1 rounded-md"> <i class="w-4 h-4 mr-2" data-lucide="star"></i> <span class="{% if is_granted('ROLE_ADMIN') %}customText{% else %} loadText {% endif %}" data-key="login-9">{{ texte["login-9"]|raw }}</span></p>
  47.                         {% endif %}
  48.                     </div>
  49.                     <div class="flex justify-left mt-20">
  50.                         {% set linkImpressum    = "https://msu-solutions.de/impressum/" %}
  51.                         {% set linkDatenschutz  = "https://msu-solutions.de/datenschutz/" %}
  52.                         {% if app.session.get('impressum') is defined and app.session.get('impressum') is not empty %}
  53.                                 {% set linkImpressum = app.session.get('impressum') %}
  54.                         {% endif %}
  55.                         {% if app.session.get('datenschutz') is defined and app.session.get('datenschutz') is not empty %}
  56.                                 {% set linkDatenschutz = app.session.get('datenschutz') %}
  57.                         {% endif %}
  58.                         <input type="hidden" id="impressumLink" class="hidden" value="{{ linkImpressum }}">
  59.                         <input type="hidden" id="datenschutzLink" class="hidden" value="{{ linkDatenschutz }}">
  60.                         {% if app.session.get('barrierefreiheitanzeigen') %}
  61.                             <div class="flex items-center mr-5">
  62.                                 <a href="{% if barrierefreiheit is defined and barrierefreiheit is not empty %} {{barrierefreiheit}} {% endif %}" class="flex items-center py-2 mt-2 rounded-md" target="_blank"> Barrierefreiheit </a>
  63.                             </div>
  64.                         {% endif %}
  65.                         <div class="flex items-center mr-5">
  66.                             <a href="{{ datenschutz }}" class="flex items-center py-2 mt-2 rounded-md" target="_blank"> Datenschutz </a>
  67.                         </div>
  68.                         <div class="flex items-center mr-5">
  69.                             <a href="{{ impressum }}" class="flex items-center py-2 mt-2 rounded-md" target="_blank"> Impressum </a>
  70.                         </div>
  71.                         {% if satzung is defined and satzung is not empty %}
  72.                             <div class="flex items-center mr-5">
  73.                                 <a href="{% if satzung is defined and satzung is not empty %} {{satzung}} {% endif %}" class="flex items-center py-2 mt-2 rounded-md" target="_blank">Aktuelle Satzung</a>
  74.                             </div>
  75.                         {% endif %}
  76.                         {% if is_granted('ROLE_ADMIN') %}
  77.                             <div class="flex items-center ml-5">
  78.                                 <a href="/dashboard" class="flex items-center py-2 mt-2 rounded-md"> Backend </a>
  79.                             </div>
  80.                         {% endif %}
  81.                     </div>
  82.                 </div>
  83.                 
  84.             </div>
  85.         </div>
  86.         <!-- END: Login Info -->
  87.         <!-- BEGIN: Login Form -->
  88.         <div class="flex content-container">
  89.             <div class="my-auto mx-auto xl:ml-20 bg-white dark:bg-darkmode-600 xl:bg-transparent px-5 sm:px-8 py-8 xl:p-0 rounded-md shadow-md xl:shadow-none w-full sm:w-3/4 lg:w-2/4 xl:w-auto">
  90.                 {% set zaehlerstandAktiv = true %}
  91.                 {% if zaehlerstandAktivStart is defined and zaehlerstandAktivStart is not empty and zaehlerstandAktivEnde is defined and zaehlerstandAktivEnde is not empty and zaehlerstandAktivText is defined and zaehlerstandAktivText is not empty %}
  92.                     {% if zaehlerstandAktivStart|date('U') <= "now"|date("d.m.Y")|date('U') and zaehlerstandAktivEnde|date('U') >= "now"|date("d.m.Y")|date('U') %}
  93.                         {% set zaehlerstandAktiv = true %}
  94.                     {% else %}
  95.                         {% set zaehlerstandAktiv = false %}
  96.                     {% endif %}
  97.                 {% endif %}
  98.                 {% include 'global/logos-login-rechts.html.twig' %}
  99.                 <button class="hidden" id="druckenbutton" data-tw-toggle="modal" data-tw-target="#drucken">drucken</button>
  100.                 <button class="hidden" id="twofabutton" data-tw-toggle="modal" data-tw-target="#twofapopup">drucken</button>
  101.                 {% if portalvariante is defined and portalvariante == 'zaehlerstand' %}
  102.                     {% if app.session.get('zaehlerstandmelden_abgemeldet') %}
  103.                         <input type="hidden" name="target_action" value="{% if target_action is defined and target_action is not empty %}{{target_action}}{% endif %}">
  104.                         {% if zaehlerstandAktiv == false %}
  105.                             <p class="py-5"><span>{{ zaehlerstandAktivText }}</span></p>
  106.                         {% endif %}
  107.                         <button id="btn_zaehlerstand_melden" class="btn btn-dark-soft py-3 px-4 w-full xl:w-auto xl:mr-3 align-top" data-tw-toggle="modal" data-tw-target="#zaehlerstand-melden"
  108.                         {% if zaehlerstandAktiv == false or webservice == false %} disabled {% endif %}>Zählerstand melden
  109.                         {% if zaehlerstandAktiv == false or webservice == false %} <a class="flex items-center tooltip ml-2" data-theme="light" title="Diese Funktion steht zur Zeit nicht zur Verfügung" href="javascript:;">
  110.                             <i style="width: 15px; height: 15px;" data-lucide="info"></i>    
  111.                         </a> {% endif %}
  112.                         </button>
  113.                     {% endif %}
  114.                 {% else %}
  115.                     <form action="{{ path('login') }}" method="post" id="anmeldeFormular" class="mt-5">
  116.                         <h2 class="intro-x font-bold text-2xl xl:text-3xl text-center xl:text-left">
  117.                             {% if wartungsarbeiten is defined and wartungsarbeiten is not empty %}
  118.                                 Es finden aktuell Wartungsarbeiten statt, so dass Sie sich nicht anmelden können.
  119.                                 <input type="hidden" id="wartungsarbeiten" value="yes">
  120.                             {% elseif online is defined and online == false or webservice == false %}
  121.                                 Das Portal ist aktuell offline.
  122.                                 <input type="hidden" id="offline" value="yes">
  123.                             {% else %}
  124.                                 <span class="{% if is_granted('ROLE_ADMIN') %}customText{% else %} loadText {% endif %}" data-key="login-11">Loggen Sie sich jetzt ein.</span>
  125.                             {% endif %}
  126.                         </h2>
  127.                         
  128.                         <p class="intro-x mt-5 font-normal">
  129.                             Bitte geben Sie hier Ihre Daten ein. Wenn Sie noch kein Kundenkonto bei uns haben, können Sie sich hier registrieren.
  130.                         </p>
  131.                         {% if error %}
  132.                             <br>
  133.                             <div class="alert alert-danger show flex items-center mb-2" role="alert">
  134.                                 <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="alert-octagon" data-lucide="alert-octagon" class="lucide lucide-alert-octagon w-6 h-6 mr-2"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg> {{ error.messageKey|trans(error.messageData, 'security') }}
  135.                             </div>
  136.                         {% endif %}
  137.                         
  138.                         <div class="intro-x mt-8">
  139.                             <input type="text" class="intro-x login__input form-control py-3 px-4 block" id="username" name="_username" placeholder="E-Mail Adresse" value="{{ app.session.get('emailtwofa') }}{{ email }}">
  140.                             <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  141.                             <input type="password" id="password" name="_password" class="intro-x login__input form-control py-3 px-4 block mt-4" placeholder="Passwort" value="{% if app.session.get("passwordtwofa") %}{{ app.session.get("passwordtwofa") }}{% endif %}">
  142.                             <input type="text" id="code" name="code" class="intro-x login__input form-control py-3 px-4 block mt-4 {% if app.request.get('webid') %}{% else %}hidden{% endif %}" placeholder="Web-ID" value="{{ app.request.get('webid') }}" data-webid="{{ app.request.get('webid') }}">
  143.                             {% if app.request.get('twofa') %}
  144.                                 <input type="text" id="twofacode" name="twofacode" class="intro-x login__input form-control py-3 px-4 block mt-4" placeholder="Code" value="">
  145.                             {% endif %}
  146.                         </div>
  147.                         {% if wartungsarbeiten is defined and (wartungsarbeiten == 0 or online == false or webservice == false) %}
  148.                             <div class="intro-x flex text-slate-600 dark:text-slate-500 text-xs sm:text-sm mt-4">
  149.                                 <a href="/passwort-vergessen/">Passwort vergessen?</a>
  150.                             </div>
  151.                         {% endif %}
  152.                         <div class="intro-x mt-5 xl:mt-8 text-center xl:text-left">
  153.                             <input type="hidden" id="twofa" value="{{ twofa }}">
  154.                             <button class="btn btn-primary py-3 px-4 w-60 align-top" id="anmelden">Anmelden</button>
  155.                         </div>
  156.                     </form>
  157.                     {% if wartungsarbeiten is defined and (wartungsarbeiten == 0 or online == false or webservice == false) %}
  158.                         <div class="btn-grid intro-x mt-5 xl:mt-8 text-center xl:text-left">
  159.                             <button class="btn btn-dark-soft py-3 px-4 align-top w-60" data-tw-toggle="modal" data-tw-target="#zugang-beantragen" {% if online == false or webservice == false %} disabled title="Die Zugangsbeantragung ist aktuell nicht verfügbar." {% endif %}>
  160.                                 Zugang beantragen
  161.                                 {% if online == false or webservice == false %}
  162.                                     <a class="flex items-center tooltip ml-2" data-theme="light" title="Diese Funktion steht zur Zeit nicht zur Verfügung" href="javascript:;">
  163.                                         <i style="width: 15px; height: 15px;" data-lucide="info"></i>    
  164.                                     </a>
  165.                                 {% endif %}
  166.                             </button>
  167.                             
  168.                             {% if app.session.get('zaehlerstandmelden_abgemeldet') %}
  169.                                 <button id="btn_zaehlerstand_melden" class="btn btn-dark-soft py-3 px-4 align-top w-60" data-tw-toggle="modal" data-tw-target="#zaehlerstand-melden" {% if zaehlerstand_online is defined and not zaehlerstand_online == true or online == false or  webservice == false %} disabled title="Die Zählerstandsmeldung ist aktuell nicht verfügbar." {% endif %}>
  170.                                     Zählerstand melden
  171.                                     {% if zaehlerstand_online is defined and not zaehlerstand_online == true or online == false or webservice == false %}
  172.                                         <a class="flex items-center tooltip ml-2" data-theme="light" title="Diese Funktion steht zur Zeit nicht zur Verfügung" href="javascript:;">
  173.                                             <i style="width: 15px; height: 15px;" data-lucide="info"></i>    
  174.                                         </a>
  175.                                     {% endif %}
  176.                                 </button>
  177.                             {% endif %}
  178.                             
  179.                             <button class="btn btn-primary py-3 px-4 align-top w-60 mt-1" id="test" data-tw-toggle="modal" data-tw-target="#barrierefreiheit">Barrierefreiheit</button>
  180.                         </div>
  181.                     {% endif %}
  182.                     {% if info is defined %}
  183.                         <div class="alert alert-secondary show flex items-center mb-2 mt-2" role="alert">
  184.                             <i data-lucide="mail" class="w-6 h-6 mr-2"></i> {{ info }}
  185.                         </div>
  186.                     {% endif %}
  187.                     {% include 'global/logos-login-footer.html.twig' %}
  188.                     
  189.                     <div class="xl:hidden">
  190.                         {% include 'global/footerlinks-login.html.twig' %}
  191.                     </div>
  192.                 {% endif %}
  193.             </div>
  194.         </div>
  195.         <!-- END: Login Form -->
  196.     </div>
  197. </div>
  198. <!-- BEGIN: Modal Content Zugang beantragen bearbeiten -->
  199. <div id="zugang-beantragen" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
  200.     <div class="modal-dialog modal-xl">
  201.         <div class="modal-content" id="form-validation">
  202.             <form action="/zugangbeantragen/" method="post" id="loginForm">
  203.                 <!-- BEGIN: Modal Header -->
  204.                 <div class="modal-header">
  205.                     <h2 class="font-medium text-base mr-auto">Zugang beantragen</h2>
  206.                     <a data-tw-dismiss="modal" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
  207.                 </div> <!-- END: Modal Header -->
  208.                 <div class="modal-body p-10">
  209.                     <div class="input-form">
  210.                         <label for="validation-form-1" class="form-label">Kundennummer* </label>
  211.                         <input id="customerid"  type="text" class="form-control" name="kundennummer" placeholder="" required>
  212.                     </div>
  213.                     {% if auth.metavalue == "internal" %}
  214.                         <div class="input-form mt-3">
  215.                             <label for="horizontal-form-1" class="form-label">Zählernummer*</label>
  216.                             <input id="meterno" type="text" class="form-control" name="zaehlernr" placeholder="" required>
  217.                         </div>
  218.                     {% else %}
  219.                         <div class="input-form mt-3">
  220.                             <label for="horizontal-form-1" class="form-label">Leistungsobjektnummer*</label>
  221.                             <input id="meterno" type="text" class="form-control" name="leistungsobjektnummer" placeholder="" required>
  222.                         </div>
  223.                     {% endif %}
  224.                     <div class="input-form mt-3">
  225.                         <label for="horizontal-form-1" class="form-label">E-Mail-Adresse*</label>
  226.                         <input id="email" type="email" name="email" class="form-control" placeholder="test@test.de" required>
  227.                     </div>
  228.                     <div class="input-form mt-3">
  229.                         <label for="horizontal-form-1" class="form-label">E-Mail-Adresse zur Überprüfung erneut eingeben* </label>
  230.                         <input id="emailnochmal" type="email" name="emailnochmal" class="form-control" placeholder="test@test.de" required>
  231.                     </div>
  232.                     <div class="input-form mt-3">
  233.                         <label for="horizontal-form-2" class="form-label">Passwort</label>
  234.                         <input id="passwortupdate" type="password" name="passwort" class="form-control" placeholder="****" required autocomplete="off">
  235.                     </div>
  236.                     <div class="input-form mt-3">
  237.                         <label for="horizontal-form-2" class="form-label">Passwort bestätigen</label>
  238.                         <input id="passwortupdaterepeat" type="password" name="passwort-repeat" class="form-control" placeholder="****" required autocomplete="off">
  239.                     </div>
  240.                     {% if output.metavalue == "on" %}
  241.                         <div class="input-form mt-3">
  242.                             <label for="horizontal-form-2" class="form-label">Zustellart* (An dieser Stelle können Sie sich dafür entscheiden, wie Sie zukünftig Ihre Rechnung erhalten möchten.)</label>
  243.                             <select class="form-select mt-2 sm:mr-2" aria-label="" name="zustellart" id="zustellart">
  244.                                 <option value="">Bitte auswählen</option>
  245.                                 {% if abrufarten is iterable %}
  246.                                         {% for key,value in abrufarten %}
  247.                                             <option value="{{ value.Code }}">{{ value.Description }}</option>
  248.                                         {% endfor %}
  249.                                 {% else %}
  250.                                     {% for key,value in zustellarten %}
  251.                                         <option value="{{ value }}">{{ value }}</option>
  252.                                     {% endfor %}
  253.                                 {% endif %}
  254.                             </select>
  255.                         </div>
  256.                     {% endif %}
  257.                     <div class="input-form mt-5 border-t py-5">
  258.                         <label for="horizontal-form-2" class="form-label">Datenschutz*</label>
  259.                         <div class="form-check form-switch">
  260.                             <input id="datenschutz" class="form-check-input" type="checkbox" required>
  261.                             <label class="form-check-label" for="datenschutz">
  262.                             {% if datenschutzText is not empty %}
  263.                                 {{ datenschutzText|raw }}
  264.                             {% endif %}
  265.                             </label>
  266.                         </div>
  267.                     </div>
  268.                 </div>
  269.                 <div class="modal-footer text-center">
  270.                     <a data-tw-dismiss="modal" href="javascript:;">
  271.                         <span class="btn btn-secondary abbrechen" id="abbrechen">Abbrechen</span>
  272.                     </a>
  273.                     <input type="submit" class="btn btn-primary" value="Zugang beantragen" id="zugangbeantragen">
  274.                 </div>
  275.             </form>
  276.         </div>
  277.     </div>
  278. </div> <!-- END: Modal Content -->
  279.     <!-- BEGIN: Modal Content Zählerstand melden bearbeiten -->
  280. <div id="zaehlerstand-melden" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
  281.     <div class="modal-dialog modal-xl">
  282.         <div class="modal-content" id="form-validation">
  283.             <form action="/zaehlerstanderfassen/" method="post" id="zaehlerstandMeldenForm" enctype="multipart/form-data">
  284.                 <div class="intro-y box p-5">
  285.                     <!-- BEGIN: Modal Header -->
  286.                     <div class="modal-header">
  287.                         <h2 class="font-medium text-base mr-auto">Zählerstand melden</h2>
  288.                         <a data-tw-dismiss="modal" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
  289.                     </div>
  290.                     <!-- END: Modal Header -->
  291.                     {% if zaehlerstandAktiv == false %}
  292.                         <p class="p-5"><span>{{ zaehlerstandAktivText }}</span></p>
  293.                     {% else %}
  294.                         <p class="p-5">Hier können Sie Ihre Zählerstände melden. Wenn Sie zu einem Zähler keinen Stand melden wollen, lassen Sie das Feld neuer Zählerstand bitte leer.</p>
  295.                         <div class="modal-header"><h2 class="font-medium text-base mr-auto">Anmeldung</h2></div>
  296.                         
  297.                         <div class="grid grid-cols-12 gap-6 p-5">
  298.                             <div class="col-span-6">
  299.                                 <div class="input-form">
  300.                                     {% if authz.metavalue == "hashz" %}
  301.                                         <label for="validation-form-1" class="form-label">{{ app.session.get('texte')["bezeichn_kundennummer_AuthwithHash"]}}<span class="red"> *</span></label>
  302.                                         <input id="customeridz"  type="text" class="form-control" name="kundennummer" placeholder="123456" required>
  303.                                     {% else %}
  304.                                         <label for="validation-form-1" class="form-label">Kundennummer<span class="red"> *</span></label>
  305.                                         <input id="customeridz"  type="text" class="form-control" name="kundennummer" placeholder="123456" required>
  306.                                     {% endif %}
  307.                                     <input id="showFormularAuto" type="hidden" value="{% if app.request.get('rahmenvertrag') %}1{% else %}2{% endif %}">
  308.                                     <input id="hiddenrv" type="hidden" value="{{ app.session.get('rahmenvertrag')}}">
  309.                                     <input id="hiddenznr" type="hidden" value="{{ app.session.get('leistungsobjektnr')}}">
  310.                                     <input id="bezeichn_kundennummer_AuthwithHash" type="hidden" value="{{ app.session.get('texte')["bezeichn_kundennummer_AuthwithHash"]}}">
  311.                                 </div>
  312.                             </div>
  313.                             {% if authz.metavalue == "internalz" %}
  314.                                 <div class="col-span-6">
  315.                                     <div class="input-form">
  316.                                         <label for="horizontal-form-1" class="form-label">Zählernummer<span class="red"> *</span></label>
  317.                                         <input id="leistungsobjektnummerz" type="text" class="form-control" name="leistungsobjektnummer" placeholder="" required>
  318.                                         <input id="contractnoz" type="hidden" class="form-control" name="AccountingContractNo" placeholder="">
  319.                                         <!-- <input id="ZS_METERREGIDX" type="hidden" class="form-control" name="ZS_METERREGIDX" placeholder=""> -->
  320.                                     </div>
  321.                                 </div>
  322.                             {% else %}
  323.                                 <div class="col-span-6">
  324.                                     <div class="input-form">
  325.                                         <label for="horizontal-form-1" class="form-label">Leistungsobjektnummer<span class="red"> *</span></label>
  326.                                         <input id="leistungsobjektnummerz" type="text" class="form-control" name="leistungsobjektnummer" placeholder="" required>
  327.                                         <input id="contractnoz" type="hidden" class="form-control" name="AccountingContractNo" placeholder="">
  328.                                         <!-- <input id="ZS_METERREGIDX" type="hidden" class="form-control" name="ZS_METERREGIDX" placeholder=""> -->
  329.                                     </div>
  330.                                 </div>
  331.                             {% endif %}
  332.                         </div>
  333.                     {% endif %}
  334.                 </div>
  335.                 <div class="hidden" id="mehrerevertraege">
  336.                 </div>
  337.                 <div class="input-form mt-5 hidden" id="hiddenKontakt">
  338.                     <span class="font-bold mt-3">Optionale Kontaktdaten</span>
  339.                     <br>
  340.                     <span class="mt-5">Wenn Sie Ihre E-Mail-Adresse eingeben, dann erhalten Sie eine Bestätigung der Zählerstandsmeldung an Ihre E-Mail.
  341.                         Ihre Kontaktdaten werden für mögliche Nachfragen an uns übermittelt. Sie müssen diese nicht eingeben.</span>
  342.                     <br>
  343.                     <label for="horizontal-form-2" class="form-label mt-5">E-Mail-Adresse</label>
  344.                     <input type="email" name="emailkontakt2" id="emailkontakt2" class="form-control" placeholder="" autocomplete="off">
  345.                     <label for="horizontal-form-2" class="form-label mt-5">Telefonnummer</label>
  346.                     <input type="text" name="telefonkontakt2" class="form-control" placeholder="" autocomplete="off">
  347.                 </div>
  348.                 
  349.                 <div class="modal-footer text-center">
  350.                     <a data-tw-dismiss="modal" href="javascript:;">
  351.                         <span class="btn btn-secondary abbrechen" id="abbrechen">Abbrechen</span>
  352.                     </a>
  353.                     <input type="submit" class="btn btn-primary" value="Daten prüfen" id="zaehlerstandmelden" {% if zaehlerstandAktiv == false %}disabled="true"{% endif %}>
  354.                 </div>
  355.             </form>
  356.         </div>
  357.     </div>
  358. </div> <!-- END: Modal Content -->
  359.     {% if app.request.get('drucken') == 1 %}
  360.         <div id="drucken" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
  361.             <div class="modal-dialog modal-lg">
  362.                 <div class="modal-content" id="form-validation">
  363.                     <div class="modal-header">
  364.                         <h2 class="font-medium text-base mr-auto">Zählerstand drucken  </h2>
  365.                         <a data-tw-dismiss="modal" class="closeDrucken" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
  366.                     </div> <!-- END: Modal Header -->
  367.                     <div class="modal-body p-5">
  368.                         <div id="druckenElemente">
  369.                             <div class="input-form">
  370.                                 <h2 class="font-medium text-base mr-auto">Zählerstand gemeldet</h2>
  371.                             </div>
  372.                             {% for key,value in app.session.get('zaehler') %}
  373.                                 {% if app.session.get('staende')[key] is not empty %}
  374.                                     <div class="input-form mt-3">
  375.                                         <label for="horizontal-form-1" class="form-label">Zähler: {{ value }}</label>
  376.                                     </div>
  377.                                     <div class="input-form">
  378.                                         <label for="horizontal-form-1" class="form-label">Ablesedatum: {{ app.session.get('ablesedatum')[key]|date("d.m.Y") }}</label>
  379.                                     </div>
  380.                                     <div class="input-form">
  381.                                         <label for="horizontal-form-1" class="form-label">Neuer Zählerstand: {{ app.session.get('staende')[key]|number_format(2,",",".") }} {{ app.session.get('einheit')[key] }}</label>
  382.                                     </div>
  383.                                     {% if key in app.session.get('toleranzart')|keys %}
  384.                                         {% if app.session.get('toleranzart')[key] == "Anderer Grund" %}
  385.                                             <div class="input-form">
  386.                                                 <label for="horizontal-form-1" class="form-label">Grund: {{ app.session.get('toleranzarttext')[key] }}</label>
  387.                                             </div>
  388.                                             {% elseif app.session.get('toleranzart')[key] is not empty %}
  389.                                                 <div class="input-form">
  390.                                                     <label for="horizontal-form-1" class="form-label">Grund: {{ app.session.get('toleranzart')[key] }}</label>
  391.                                                 </div>
  392.                                         {% endif %}
  393.                                     {% endif %}
  394.                                     {% if value in app.session.get('fotos')|keys %}
  395.                                         <img src="data:image/jpeg;base64,{{ app.session.get('fotos')[value] }}" alt="Foto" class="mt-3">
  396.                                     {% endif %}
  397.                                 {% endif %}
  398.                             {% endfor %}
  399.                             <div class="input-form mt-3">
  400.                                 <label for="horizontal-form-1" class="form-label">gemeldet am: {{ "now"|date("d.m.Y") }} um {{ "now"|date("H:i") }} Uhr</label>
  401.                             </div>
  402.                         </div>
  403.                         <div class="input-form mt-5">
  404.                             <input type="button" id="druckenDialog" class="btn btn-primary" value="Drucken">
  405.                         </div>
  406.                     </div>
  407.                 </div>
  408.             </div>
  409.         </div>
  410.     {% endif %}
  411.     {% if twofa and app.request.get('twofa') is empty %}
  412.         <div id="twofapopup" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
  413.             <div class="modal-dialog modal-lg">
  414.                 <div class="modal-content" id="form-validation">
  415.                     <div class="modal-header">
  416.                         <h2 class="font-medium text-base mr-auto">Information zur 2FA </h2>
  417.                         <a data-tw-dismiss="modal" class="closeDrucken" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
  418.                     </div> <!-- END: Modal Header -->
  419.                     <div class="modal-body p-10">
  420.                         <form action="/login/twofa/" method="post" id="login2faformular">
  421.                             <div class="input-form mt-3">
  422.                                 <label for="horizontal-form-1" class="form-label">Ihnen wird der Code nach dem Absenden per Mail zugesendet.</label>
  423.                             </div>
  424.                             <div class="input-form mt-5">
  425.                                 <input type="hidden" id="emailtwofa" name="emailtwofa" class="btn btn-primary" value="">
  426.                                 <input type="hidden" id="passwordtwofa" name="passwordtwofa" class="btn btn-primary" value="">
  427.                                 <input type="submit" class="btn btn-primary" value="Absenden">
  428.                             </div>
  429.                         </form>
  430.                     </div>
  431.                 </div>
  432.             </div>
  433.         </div>
  434.     {% endif %}
  435. {% endblock %}
  436. {% block scripts %}
  437.     <script src="{{ asset('/js/password-strength/jquery.strengthify.js')}}"></script>
  438.     <script src="{{ asset('/js/printthis/printThis.js')}}"></script>
  439.     <script src="{{ asset('/js/login.js')}}"></script>
  440. {% endblock %}