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.                 <input type="hidden" name="target_action" value="{% if target_action is defined and target_action is not empty %}{{target_action}}{% endif %}">
  102.                 {% if portalvariante is defined and portalvariante == 'zaehlerstand' %}
  103.                     {% if app.session.get('zaehlerstandmelden_abgemeldet') %}
  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 mt-3 w-full xl:w-auto" 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">{{ texte["begriff_leistungsobjektnummer"]|raw }}*</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.                     
  241.                     <div class="mt-3">
  242.                         <div class="alert alert-secondary show flex flex-col items-start text-left" role="alert">
  243.                             <p class="font-bold">Hinweis</p>
  244.                             <p>Zulässige Sonderzeichen: !@#$%^&*</p>
  245.                         </div>
  246.                     </div>
  247.                     {% if output.metavalue == "on" %}
  248.                         <div class="input-form mt-3">
  249.                             <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>
  250.                             <select class="form-select mt-2 sm:mr-2" aria-label="" name="zustellart" id="zustellart">
  251.                                 <option value="">Bitte auswählen</option>
  252.                                 {% if abrufarten is iterable %}
  253.                                         {% for key,value in abrufarten %}
  254.                                             <option value="{{ value.Code }}">{{ value.Description }}</option>
  255.                                         {% endfor %}
  256.                                 {% else %}
  257.                                     {% for key,value in zustellarten %}
  258.                                         <option value="{{ value }}">{{ value }}</option>
  259.                                     {% endfor %}
  260.                                 {% endif %}
  261.                             </select>
  262.                         </div>
  263.                     {% endif %}
  264.                     <div class="input-form mt-5 border-t py-5">
  265.                         <label for="horizontal-form-2" class="form-label">Datenschutz*</label>
  266.                         <div class="form-check form-switch">
  267.                             <input id="datenschutz" class="form-check-input" type="checkbox" required>
  268.                             <label class="form-check-label" for="datenschutz">
  269.                             {% if datenschutzText is not empty %}
  270.                                 {{ datenschutzText|raw }}
  271.                             {% endif %}
  272.                             </label>
  273.                         </div>
  274.                     </div>
  275.                 </div>
  276.                 <div class="modal-footer text-center">
  277.                     <a data-tw-dismiss="modal" href="javascript:;">
  278.                         <span class="btn btn-secondary abbrechen" id="abbrechen">Abbrechen</span>
  279.                     </a>
  280.                     <input type="submit" class="btn btn-primary" value="Zugang beantragen" id="zugangbeantragen">
  281.                 </div>
  282.             </form>
  283.         </div>
  284.     </div>
  285. </div> <!-- END: Modal Content -->
  286.     <!-- BEGIN: Modal Content Zählerstand melden bearbeiten -->
  287. <div id="zaehlerstand-melden" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
  288.     <div class="modal-dialog modal-xl">
  289.         <div class="modal-content" id="form-validation">
  290.             <form action="/zaehlerstanderfassen/" method="post" id="zaehlerstandMeldenForm" enctype="multipart/form-data">
  291.                 <div class="intro-y box p-5">
  292.                     <!-- BEGIN: Modal Header -->
  293.                     <div class="modal-header">
  294.                         <h2 class="font-medium text-base mr-auto">Zählerstand melden</h2>
  295.                         <a data-tw-dismiss="modal" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
  296.                     </div>
  297.                     <!-- END: Modal Header -->
  298.                     {% if zaehlerstandAktiv == false %}
  299.                         <p class="p-5"><span>{{ zaehlerstandAktivText }}</span></p>
  300.                     {% else %}
  301.                         <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>
  302.                         <div class="modal-header"><h2 class="font-medium text-base mr-auto">Anmeldung</h2></div>
  303.                         
  304.                         <div class="grid grid-cols-12 gap-6 p-5">
  305.                             <div class="col-span-6">
  306.                                 <div class="input-form">
  307.                                     {% if authz.metavalue == "hashz" %}
  308.                                         <label for="validation-form-1" class="form-label">{{ app.session.get('texte')["bezeichn_kundennummer_AuthwithHash"]}}<span class="red"> *</span></label>
  309.                                         <input id="customeridz"  type="text" class="form-control" name="kundennummer" placeholder="123456" required>
  310.                                     {% else %}
  311.                                         <label for="validation-form-1" class="form-label">Kundennummer<span class="red"> *</span></label>
  312.                                         <input id="customeridz"  type="text" class="form-control" name="kundennummer" placeholder="123456" required>
  313.                                     {% endif %}
  314.                                     <input id="showFormularAuto" type="hidden" value="{% if app.request.get('rahmenvertrag') %}1{% else %}2{% endif %}">
  315.                                     <input id="hiddenrv" type="hidden" value="{{ app.session.get('rahmenvertrag')}}">
  316.                                     <input id="hiddenznr" type="hidden" value="{{ app.session.get('leistungsobjektnr')}}">
  317.                                     <input id="bezeichn_kundennummer_AuthwithHash" type="hidden" value="{{ app.session.get('texte')["bezeichn_kundennummer_AuthwithHash"]}}">
  318.                                     <input id="begriff_leistungsobjektnummer" type="hidden" value="{{ app.session.get('texte')["begriff_leistungsobjektnummer"]}}">
  319.                                 </div>
  320.                             </div>
  321.                             <div class="col-span-6">
  322.                                 <div class="input-form">
  323.                                     <label for="horizontal-form-1" class="form-label">
  324.                                         {% if authz.metavalue == "internalz" %}
  325.                                             Zählernummer
  326.                                         {% elseif authz.metavalue == "accountingcontractz" %}
  327.                                             Vertragsnummer
  328.                                         {% else %}
  329.                                             {% if texte["begriff_leistungsobjektnummer"] != "Vertragsnummer" %}
  330.                                                 {{ texte["begriff_leistungsobjektnummer"]|raw }}
  331.                                             {% else %}
  332.                                                 Leistungsobjektnummer
  333.                                             {% endif %}
  334.                                         {% endif %}
  335.                                         <span class="red"> *</span>
  336.                                     </label>
  337.                                     <input id="leistungsobjektnummerz" type="text" class="form-control" name="leistungsobjektnummer" placeholder="" required>
  338.                                     <input id="contractnoz" type="hidden" class="form-control" name="AccountingContractNo" placeholder="">
  339.                                     <!-- <input id="ZS_METERREGIDX" type="hidden" class="form-control" name="ZS_METERREGIDX" placeholder=""> -->
  340.                                 </div>
  341.                             </div>
  342.                         </div>
  343.                     {% endif %}
  344.                 </div>
  345.                 <div class="hidden" id="mehrerevertraege">
  346.                 </div>
  347.                 {% if hinweiszaehler is defined %}
  348.                     <div id="hinweis_zaehler">
  349.                         <p class="text-left p-5">{{ hinweiszaehler.beschreibung }}</p>
  350.                     </div>
  351.                 {% endif %}
  352.                 <div class="input-form mt-5 hidden" id="hiddenKontakt">
  353.                     <span class="font-bold mt-3">Optionale Kontaktdaten</span>
  354.                     <br>
  355.                     <span class="mt-5">Wenn Sie Ihre E-Mail-Adresse eingeben, dann erhalten Sie eine Bestätigung der Zählerstandsmeldung an Ihre E-Mail.
  356.                         Ihre Kontaktdaten werden für mögliche Nachfragen an uns übermittelt. Sie müssen diese nicht eingeben.</span>
  357.                     <br>
  358.                     <label for="horizontal-form-2" class="form-label mt-5">E-Mail-Adresse</label>
  359.                     <input type="email" name="emailkontakt2" id="emailkontakt2" class="form-control" placeholder="" autocomplete="off">
  360.                     <label for="horizontal-form-2" class="form-label mt-5">Telefonnummer</label>
  361.                     <input type="text" name="telefonkontakt2" class="form-control" placeholder="" autocomplete="off">
  362.                 </div>
  363.                 
  364.                 <div class="modal-footer text-center">
  365.                     <a data-tw-dismiss="modal" href="javascript:;">
  366.                         <span class="btn btn-secondary abbrechen" id="abbrechen">Abbrechen</span>
  367.                     </a>
  368.                     <input type="submit" class="btn btn-primary" value="Daten prüfen" id="zaehlerstandmelden" {% if zaehlerstandAktiv == false %}disabled="true"{% endif %}>
  369.                 </div>
  370.             </form>
  371.         </div>
  372.     </div>
  373. </div> <!-- END: Modal Content -->
  374.     {% if app.request.get('drucken') == 1 %}
  375.         <div id="drucken" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
  376.             <div class="modal-dialog modal-lg">
  377.                 <div class="modal-content" id="form-validation">
  378.                     <div class="modal-header">
  379.                         <h2 class="font-medium text-base mr-auto">Zählerstand drucken  </h2>
  380.                         <a data-tw-dismiss="modal" class="closeDrucken" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
  381.                     </div> <!-- END: Modal Header -->
  382.                     <div class="modal-body p-5">
  383.                         <div id="druckenElemente">
  384.                             <div class="input-form">
  385.                                 <h2 class="font-medium text-base mr-auto">Zählerstand gemeldet</h2>
  386.                             </div>
  387.                             {% for key,value in app.session.get('zaehler') %}
  388.                                 {% if app.session.get('staende')[key] is not empty %}
  389.                                     <div class="input-form mt-3">
  390.                                         <label for="horizontal-form-1" class="form-label">Zähler: {{ value }}</label>
  391.                                     </div>
  392.                                     <div class="input-form">
  393.                                         <label for="horizontal-form-1" class="form-label">Ablesedatum: {{ app.session.get('ablesedatum')[key]|date("d.m.Y") }}</label>
  394.                                     </div>
  395.                                     <div class="input-form">
  396.                                         <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>
  397.                                     </div>
  398.                                     {% if key in app.session.get('toleranzart')|keys %}
  399.                                         {% if app.session.get('toleranzart')[key] == "Anderer Grund" %}
  400.                                             <div class="input-form">
  401.                                                 <label for="horizontal-form-1" class="form-label">Grund: {{ app.session.get('toleranzarttext')[key] }}</label>
  402.                                             </div>
  403.                                             {% elseif app.session.get('toleranzart')[key] is not empty %}
  404.                                                 <div class="input-form">
  405.                                                     <label for="horizontal-form-1" class="form-label">Grund: {{ app.session.get('toleranzart')[key] }}</label>
  406.                                                 </div>
  407.                                         {% endif %}
  408.                                     {% endif %}
  409.                                     {% if value in app.session.get('fotos')|keys %}
  410.                                         <img src="data:image/jpeg;base64,{{ app.session.get('fotos')[value] }}" alt="Foto" class="mt-3">
  411.                                     {% endif %}
  412.                                 {% endif %}
  413.                             {% endfor %}
  414.                             <div class="input-form mt-3">
  415.                                 <label for="horizontal-form-1" class="form-label">gemeldet am: {{ "now"|date("d.m.Y") }} um {{ "now"|date("H:i") }} Uhr</label>
  416.                             </div>
  417.                         </div>
  418.                         <div class="input-form mt-5">
  419.                             <input type="button" id="druckenDialog" class="btn btn-primary" value="Drucken">
  420.                         </div>
  421.                     </div>
  422.                 </div>
  423.             </div>
  424.         </div>
  425.     {% endif %}
  426.     {% if twofa and app.request.get('twofa') is empty %}
  427.         <div id="twofapopup" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
  428.             <div class="modal-dialog modal-lg">
  429.                 <div class="modal-content" id="form-validation">
  430.                     <div class="modal-header">
  431.                         <h2 class="font-medium text-base mr-auto">Information zur 2FA </h2>
  432.                         <a data-tw-dismiss="modal" class="closeDrucken" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
  433.                     </div> <!-- END: Modal Header -->
  434.                     <div class="modal-body p-10">
  435.                         <form action="/login/twofa/" method="post" id="login2faformular">
  436.                             <div class="input-form mt-3">
  437.                                 <label for="horizontal-form-1" class="form-label">Ihnen wird der Code nach dem Absenden per Mail zugesendet.</label>
  438.                             </div>
  439.                             <div class="input-form mt-5">
  440.                                 <input type="hidden" id="emailtwofa" name="emailtwofa" class="btn btn-primary" value="">
  441.                                 <input type="hidden" id="passwordtwofa" name="passwordtwofa" class="btn btn-primary" value="">
  442.                                 <input type="submit" class="btn btn-primary" value="Absenden">
  443.                             </div>
  444.                         </form>
  445.                     </div>
  446.                 </div>
  447.             </div>
  448.         </div>
  449.     {% endif %}
  450. {% endblock %}
  451. {% block scripts %}
  452.     <script src="{{ asset('/js/password-strength/jquery.strengthify.js')}}"></script>
  453.     <script src="{{ asset('/js/printthis/printThis.js')}}"></script>
  454.     <script src="{{ asset('/js/login.js')}}"></script>
  455. {% endblock %}