templates/login/index.html.twig line 1
{# templates/login/index.html.twig #}
{% extends 'base.html.twig' %}
{% block body %}
<div class="container sm:px-10">
<div class="block xl:grid grid-cols-2 gap-4">
<!-- BEGIN: Login Info -->
<div class="hidden xl:flex flex-col min-h-screen">
<a href="/" class="-intro-x flex items-center pt-5">
{# <img id="logo" alt="/" class="w-32" src="{% if app.session.get('logo') %}/customerdata/{{ app.session.get('logo') }}{% else %}/images/logo-msu-farbig.svg{% endif %}"> #}
<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>
</a>
<div class="my-auto">
<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">
{{ texte["login-0"]|raw }}
</div>
<div class="-intro-x mt-5 text-white text-opacity-70 dark:text-slate-400">
<div class="text-lg">
<span class="{% if is_granted('ROLE_ADMIN') %} customText {% else %} loadText {% endif %}" data-key="login-1">{{ texte["login-1"]|raw }}</span>
<br>
<br>
<span class="{% if is_granted('ROLE_ADMIN') %} customText {% else %} loadText {% endif %}" data-key="login-2">
{{ texte["login-2"]|raw }}
</span>
</div>
<div class="mt-5">
{% if "login-3" in texte|keys and texte["login-3"] is not empty %}
<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>
{% endif %}
{% if "login-4" in texte|keys and texte["login-4"] is not empty %}
<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>
{% endif %}
{% if "login-5" in texte|keys and texte["login-5"] is not empty %}
<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>
{% endif %}
{% if "login-6" in texte|keys and texte["login-6"] is not empty %}
<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>
{% endif %}
{% if "login-7" in texte|keys and texte["login-7"] is not empty %}
<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>
{% endif %}
{% if "login-8" in texte|keys and texte["login-8"] is not empty %}
<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>
{% endif %}
{% if "login-9" in texte|keys and texte["login-9"] is not empty %}
<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>
{% endif %}
</div>
<div class="flex justify-left mt-20">
{% if is_granted('ROLE_ADMIN') %}
<div class="flex items-center ml-5">
<a href="/dashboard" class="flex items-center py-2 mt-2 rounded-md"> Backend </a>
</div>
{% endif %}
</div>
</div>
</div>
</div>
<!-- END: Login Info -->
<!-- BEGIN: Login Form -->
<div class="h-screen xl:h-auto flex py-5 xl:py-0 my-10 xl:my-0">
<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">
<img id="logo" alt="/" class="w-32" src="{% if app.session.get('logo') %}/customerdata/{{ app.session.get('logo') }}{% else %}/images/logo-msu-farbig.svg{% endif %}">
<input type="hidden" name="target_action" value="{% if target_action is defined and target_action is not empty %}{{target_action}}{% endif %}">
{% if portalvariante is defined and portalvariante == 'zaehlerstand' %}
<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"
{% if zaehlerstand_online is defined and not zaehlerstand_online == true %} disabled {% endif %}
>Zählerstand melden
{% if zaehlerstand_online is defined and not zaehlerstand_online == true %} <a class="flex items-center tooltip ml-2" data-theme="light" title="Diese Funktion steht zur Zeit nicht zur Verfügung" href="javascript:;">
<i style="width: 15px; height: 15px;" data-lucide="info"></i>
</a> {% endif %}
</button>
{% else %}
<form action="{{ path('login') }}" method="post" id="anmeldeFormular" class="mt-5">
<h2 class="intro-x font-bold text-2xl xl:text-3xl text-center xl:text-left">
{% if wartungsarbeiten is defined and wartungsarbeiten is not empty %}
Es finden aktuell Wartungsarbeiten statt, so dass Sie sich nicht anmelden können.
<input type="hidden" id="wartungsarbeiten" value="yes">
{% elseif online is defined and online == false %}
Das Portal ist aktuell offline.
<input type="hidden" id="offline" value="yes">
{% else %}
<span class="{% if is_granted('ROLE_ADMIN') %}customText{% else %} loadText {% endif %}" data-key="login-11">Loggen Sie sich jetzt ein.</span>
{% endif %}
</h2>
<p class="mt-5 font-normal">
Bitte geben Sie hier Ihre Daten ein. Wenn Sie noch kein Kundenkonto bei uns haben, können Sie sich hier registrieren.
</p>
{% if error %}
<br>
<div class="alert alert-danger show flex items-center mb-2" role="alert">
<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') }}
</div>
{% endif %}
<div class="intro-x mt-2 text-slate-400 xl:hidden text-center"> </div>
<div class="intro-x mt-8">
<input type="text" class="intro-x login__input form-control py-3 px-4 block" id="username" name="_username" placeholder="E-Mail Adresse" value="{% if app.session.get("emailtwofa") %}{{ app.session.get("emailtwofa") }}{% endif %}">
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<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("pwtwofa") %}{{ app.session.get("pwtwofa") }}{% endif %}">
<input type="hidden" id="origin_route" name="origin_route" value="user">
{% if app.request.get('twofa') %}
<input type="text" id="code" name="code" class="intro-x login__input form-control py-3 px-4 block mt-4" placeholder="Code" value="">
{% endif %}
</div>
<div class="intro-x flex text-slate-600 dark:text-slate-500 text-xs sm:text-sm mt-4">
<a href="/passwort-vergessen/">Passwort vergessen?</a>
</div>
<div class="intro-x mt-5 xl:mt-8 text-center xl:text-left">
<input type="hidden" id="twofa" value="{% if twofa is defined and twofa is not empty %} {{twofa}} {% endif %}">
<button class="btn btn-primary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top" id="anmelden">Anmelden</button>
</div>
</form>
{% if wartungsarbeiten is not defined or wartungsarbeiten is empty %}
<div class="intro-x mt-5 xl:mt-8 text-center xl:text-left">
<button id="btn_zugang_beantragen" 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="#zugang-beantragen">Zugang beantragen</button>
<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"
{% if zaehlerstand_online is defined and not zaehlerstand_online == true %} disabled title="Die Zählerstandsmeldung ist aktuell nicht verfügbar." {% endif %}
>Zählerstand melden
{% if zaehlerstand_online is defined and not zaehlerstand_online == true %} <a class="flex items-center tooltip ml-2" data-theme="light" title="Diese Funktion steht zur Zeit nicht zur Verfügung" href="javascript:;">
<i style="width: 15px; height: 15px;" data-lucide="info"></i>
</a> {% endif %}
</button>
{% if app.session.get('tarifrechner') %}
<div class="btn btn-dark-soft py-3 px-4 w-full xl:w-auto xl:mr-3 align-tops"><a href="/tarifrechner/">Tarifrechner</a></div>
{% endif %}
<button class="btn btn-primary py-3 px-4 w-full xl:w-auto xl:mr-3 align-top" id="test" data-tw-toggle="modal" data-tw-target="#barrierefreiheit">Barrierefreiheit</button>
<button class="hidden" id="druckenbutton" data-tw-toggle="modal" data-tw-target="#drucken">drucken</button>
<button class="hidden" id="twofabutton" data-tw-toggle="modal" data-tw-target="#twofapopup">drucken</button>
</div>
{% endif %}
{% if info is defined %}
<div class="alert alert-secondary show flex items-center mb-2 mt-2" role="alert">
<i data-lucide="mail" class="w-6 h-6 mr-2"></i> {{ info }}
</div>
{% endif %}
{% endif %}
<div class="intro-x mt-10 xl:mt-24 text-slate-600 dark:text-slate-500 text-center xl:text-left">
<a href="{% if barrierefreiheit is defined and barrierefreiheit is not empty %} {{barrierefreiheit}} {% endif %}" class="text-primary dark:text-slate-200 mr-5"> Barrierefreiheit </a>
<a href="{% if datenschutz is defined and datenschutz is not empty %} {{datenschutz}} {% endif %}" class="text-primary dark:text-slate-200 mr-5"> Datenschutz </a>
<a href="{% if impressum is defined and impressum is not empty %} {{impressum}} {% endif %}" class="text-primary dark:text-slate-200"> Impressum </a>
</div>
</div>
<!-- END: Login Form -->
</div>
</div>
<!-- BEGIN: Modal Content Zugang beantragen bearbeiten -->
<div id="zugang-beantragen" class="modal z-10" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content" id="form-validation">
<form action="/zugangbeantragen/" method="post" id="loginForm">
<!-- BEGIN: Modal Header -->
<div class="modal-header">
<h2 class="font-medium text-base mr-auto">Zugang beantragen</h2>
<a data-tw-dismiss="modal" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
</div> <!-- END: Modal Header -->
<div class="modal-body p-10">
{% if authmethode is defined and authmethode == 'internal' %}
<div class="input-form">
<label for="validation-form-1" class="form-label">Rahmenvertragsnummer* </label>
<input id="customerid" type="text" class="form-control" name="kundennummer" placeholder="123456" required>
</div>
{% else %}
<div class="input-form">
<label for="validation-form-1" class="form-label">Geschäftspartnernummer* </label>
<input id="customerid" type="text" class="form-control" name="kundennummer" placeholder="GP1234" required>
</div>
{% endif %}
<div class="input-form mt-3">
<label for="horizontal-form-1" class="form-label">Zählernummer*</label>
<input id="meterno" type="text" class="form-control" name="leistungsobjektnummer" placeholder="123456" required>
</div>
<div class="input-form mt-3">
<label for="horizontal-form-1" class="form-label">E-Mail-Adresse*</label>
<input id="email" type="email" name="email" class="form-control" placeholder="test@test.de" required>
</div>
<div class="input-form mt-3">
<label for="horizontal-form-1" class="form-label">E-Mail-Adresse zur Überprüfung erneut eingeben* </label>
<input id="emailnochmal" type="email" name="emailnochmal" class="form-control" placeholder="test@test.de" required>
</div>
<div class="input-form mt-3">
<label for="horizontal-form-2" class="form-label">Passwort</label>
<input id="passwortupdate" type="password" name="passwort" class="form-control" placeholder="****" required autocomplete="off">
</div>
<div class="input-form mt-3">
<label for="horizontal-form-2" class="form-label">Passwort bestätigen</label>
<input id="passwortupdaterepeat" type="password" name="passwort-repeat" class="form-control" placeholder="****" required autocomplete="off">
</div>
{#
<div class="input-form mt-3">
<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>
{% if zustellarten is defined and zustellarten is not empty %}
<select class="form-select mt-2 sm:mr-2" aria-label="" name="zustellart" id="zustellart">
<option value="">Bitte auswählen</option>
{% for key,value in zustellarten %}
<option value="{{ value }}">{{ value }}</option>
{% endfor %}
</select>
{% endif %}
</div>
#}
<div class="input-form mt-5 border-t pt-5">
<div class="form-check form-switch">
<input id="datenschutz" class="form-check-input" type="checkbox" required name="datenschutz">
<label class="form-check-label" for="datenschutz">Ja, ich habe die <a target="_blank" href="{% if datenschutz is defined and datenschutz is not empty %} {{datenschutz}} {% endif %}">Datenschutzerklärung</a> zur Kenntnis genommen und akzeptiere diese.</label>
</div>
</div>
{% if app.session.get('textzugangbeantragen') %}
<div class="input-form mt-3">
<div class="form-check form-switch">
<input id="kundenportal" class="form-check-input" type="checkbox" name="kundenportal">
<label class="form-check-label" for="kundenportal">Ja, ich möchte zukünftig meine Dokumente nur über das Kundenportal abrufen.</label>
</div>
</div>
<div class="input-form mt-3">
<div class="form-check form-switch">
<input id="informationen" class="form-check-input" type="checkbox" name="informationen">
<label class="form-check-label" for="informationen">Ja, ich möchte weitere Informationen zu neuen Produkten erhalten.</label>
</div>
</div>
{% endif %}
</div>
<div class="modal-footer text-center">
<a data-tw-dismiss="modal" href="javascript:;">
<span class="btn btn-secondary abbrechen" id="abbrechen">Abbrechen</span>
</a>
<input type="submit" class="btn btn-primary" value="Zugang beantragen" id="zugangbeantragen">
</div>
</form>
</div>
</div>
</div> <!-- END: Modal Content -->
<!-- BEGIN: Modal Content Zählerstand melden bearbeiten -->
<div id="zaehlerstand-melden" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-xl">
<div class="modal-content" id="form-validation">
<form action="/zaehlerstanderfassen/" method="post" id="zaehlerstandMeldenForm">
<div class="intro-y box p-5">
<!-- BEGIN: Modal Header -->
<div class="modal-header">
<h2 class="font-medium text-base mr-auto">Zählerstand melden</h2>
<a data-tw-dismiss="modal" href="javascript:;" class="zaehlerstandmeldenschliessen"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
</div> <!-- END: Modal Header -->
<p class="p-5">Hier können Sie die Zählerstände eines Rahmenvertrages melden. Wenn Sie zu einem Zähler keinen Stand melden wollen, lassen Sie das Feld neuer Zählerstand bitte leer.</p>
<div class="modal-header"><h2 class="font-medium text-base mr-auto">Anmeldung</h2></div>
<div class="grid grid-cols-12 gap-6 p-5">
<div class="col-span-12 lg:col-span-6">
<div class="">
<label for="" class="form-label">Rahmenvertragsnummer <span class="red"> *</span></label>
<input id="customeridz" type="text" class="form-control" name="kundennummer" required value="{% if app.session.get('rahmenvertrag') %}{{ app.session.get('rahmenvertrag')}}{% endif %}">
<input id="showFormularAuto" type="hidden" value="{% if app.request.get('rahmenvertrag') %}1{% else %}2{% endif %}">
<input id="hiddenrv" type="hidden" value="{{ app.session.get('rahmenvertrag')}}">
<input id="hiddenznr" type="hidden" value="{{ app.session.get('zaehlernr')}}">
</div>
</div>
<div class="col-span-12 lg:col-span-6">
<div class="input-form">
<label for="" class="form-label">Zählernummer<span class="red"> *</span></label>
<input id="leistungsobjektnummerz" type="text" class="form-control" name="leistungsobjektnummer" required value="{% if app.session.get('zaehlernr') %}{{ app.session.get('zaehlernr')}}{% endif %}">
<input id="contractnoz" type="hidden" class="form-control" name="AccountingContractNo" placeholder="">
<input id="ZS_METERREGIDX" type="hidden" class="form-control" name="ZS_METERREGIDX" placeholder="">
<input id="minToleranz" type="hidden" class="form-control" name="minToleranz" placeholder="">
<input id="maxToleranz" type="hidden" class="form-control" name="maxToleranz" placeholder="">
</div>
</div>
</div>
</div>
<div class="hidden" id="mehrerevertraege">
</div>
<div class="input-form mt-5 hidden" id="hiddenKontakt">
<span class="font-bold mt-3">Optionale Kontaktdaten</span>
<br>
<span class="mt-5">Wenn Sie Ihre E-Mail-Adresse eingeben, dann erhalten Sie eine Bestätigung der Zählerstandsmeldung an Ihre E-Mail.
Ihre Kontaktdaten werden für mögliche Nachfragen an uns übermittelt. Sie müssen diese nicht eingeben.</span>
<br>
<label for="horizontal-form-2" class="form-label mt-5">E-Mail-Adresse</label>
<input type="email" name="emailkontakt" id="emailkontakt" class="form-control" placeholder="" autocomplete="off">
<label for="horizontal-form-2" class="form-label mt-5">Telefonnummer</label>
<input type="text" name="telefonkontakt" class="form-control" placeholder="" autocomplete="off">
</div>
<div class="modal-footer text-center">
<a data-tw-dismiss="modal" href="javascript:;">
<span class="btn btn-secondary abbrechen zaehlerstandmeldenschliessen" id="abbrechen">Abbrechen</span>
</a>
<input type="submit" class="btn btn-primary" value="Daten prüfen" id="zaehlerstandmelden">
</div>
</form>
</div>
</div>
</div> <!-- END: Modal Content -->
{% if app.request.get('drucken') == 1 %}
<div id="drucken" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content" id="form-validation">
<div class="modal-header">
<h2 class="font-medium text-base mr-auto">Zählerstand drucken </h2>
<a data-tw-dismiss="modal" class="closeDrucken" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
</div> <!-- END: Modal Header -->
<div class="modal-body p-5">
<div id="druckenElemente">
<div class="input-form">
<h2 class="font-medium text-base mr-auto">Zählerstand gemeldet</h2>
</div>
<div class="input-form mt-3">
{{ app.session.get('druckentext')|raw }}
</div>
{#
{% for key,value in app.session.get('zaehler') %}
{% if app.session.get('staende')[key] is not empty %}
<div class="input-form mt-3">
<label for="horizontal-form-1" class="form-label">Zähler: {{ value }}</label>
</div>
<div class="input-form mt-1">
<label for="horizontal-form-1" class="form-label">Ablesedatum: {{ app.session.get('ablesedatum')[key]|date("d.m.Y") }}</label>
</div>
<div class="input-form mt-1">
<label for="horizontal-form-1" class="form-label">Neuer Zählerstand: {{ app.session.get('staende')[key]|replace({",":"."})|number_format(2,",",".") }}</label>
</div>
{% endif %}
{% endfor %}
#}
<div class="input-form mt-3">
<label for="horizontal-form-1" class="form-label">gemeldet am: {{ "now"|date("d.m.Y") }} um {{ "now"|date_modify("+2 hours ")|date("H:i") }} Uhr</label>
</div>
</div>
<div class="input-form mt-5">
<input type="button" id="druckenDialog" class="btn btn-primary" value="Drucken">
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if twofa is defined and app.request.get('twofa') is empty %}
<div id="twofapopup" class="modal" data-tw-backdrop="static" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content" id="form-validation">
<div class="modal-header">
<h2 class="font-medium text-base mr-auto">Information zur 2FA </h2>
<a data-tw-dismiss="modal" class="closeDrucken" href="javascript:;"> <i data-lucide="x" class="w-8 h-8 text-slate-400"></i> </a>
</div> <!-- END: Modal Header -->
<div class="modal-body p-10">
<form action="/login/twofa/" method="post" id="login2faformular">
<div class="input-form mt-3">
<label for="horizontal-form-1" class="form-label">Wir haben Ihnen einen Logincode per E-Mail zugesendet.</label>
</div>
<div class="input-form mt-5">
<input type="hidden" id="emailtwofa" name="emailtwofa" class="btn btn-primary" value="">
<input type="hidden" id="pwtwofa" name="pwtwofa" class="btn btn-primary" value="">
<input type="submit" class="btn btn-primary" value="Absenden">
</div>
</form>
</div>
</div>
</div>
</div>
{% endif %}
{% endblock %}
{% block scripts %}
<script src="{{ asset('/js/printthis/printThis.js')}}"></script>
<script src="{{ asset('/js/login.js')}}"></script>
{% endblock %}