templates/login/password-lost.html.twig line 1

  1. {# templates/login/index.html.twig #}
  2. {% extends 'base.html.twig' %}
  3. {% block title %} - Passwort vergessen {% endblock %}
  4. {% block body %}
  5. <div class="container sm:px-10">
  6.     <div class="block xl:grid grid-cols-2 gap-4">
  7.         <!-- BEGIN: Login Info -->
  8.         <div class="hidden xl:flex flex-col min-h-screen">
  9.             <div class="my-auto">
  10.                 <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">
  11.                     {{ texte["login-0"]|raw }}
  12.                 </div>
  13.                 <div class="-intro-x text-white font-medium text-4xl leading-tight mt-10">
  14.                     Hier können Sie Ihr
  15.                     <br>
  16.                     Passwort zurücksetzen.
  17.                 </div>
  18.             </div>
  19.         </div>
  20.         <!-- END: Login Info -->
  21.         <!-- BEGIN: Login Form -->
  22.         <div class="h-screen xl:h-auto flex py-5 xl:py-0 my-10 xl:my-0">
  23.             <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">
  24.                 <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 %}">
  25.                 {% if newpassword is not defined %}
  26.                     <form action="/passwort-vergessen/" method="post" class="mt-10">
  27.                     <h2 class="intro-x font-bold text-2xl xl:text-3xl text-center xl:text-left">
  28.                     Bitte geben Sie Ihre Mailadresse ein.
  29.                     </h2>
  30.                     <p class="font-normal mt-5 mb-5">Sie erhalten eine Mail mit einem Link zum Zurücksetzen des Passwortes.</p>
  31.                     <div class="intro-x mt-8">
  32.                         <input type="text" class="intro-x login__input form-control py-3 px-4 block" id="email" name="email" placeholder="Email">
  33.                     </div>
  34.                     <div class="intro-x mt-5 xl:mt-8 text-center xl:text-left">
  35.                         <button class="btn btn-primary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top" id="passwortvergessen">Absenden</button>
  36.                     </div>
  37.                     </form>
  38.                     <div class="intro-x mt-2 text-center xl:text-left">
  39.                         <a href="/"><button class="btn btn-secondary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top">zur Startseite</button></a>
  40.                     </div>
  41.                 {% endif %}
  42.                 {% if info is defined and info is not empty %}
  43.                     <div class="alert alert-secondary show flex items-center mb-2 mt-2" role="alert">
  44.                         <i data-lucide="mail" class="w-6 h-6 mr-2"></i> {{ info }}
  45.                     </div>
  46.                 {% endif %}
  47.                 {% if error is defined and error is not empty%}
  48.                     <div class="alert alert-danger show flex items-center mb-2 mt-2" role="alert">
  49.                         <i data-lucide="info" class="w-6 h-6 mr-2"></i> {{ error }}
  50.                     </div>
  51.                 {% endif %}
  52.                 {% if newpassword is defined %}
  53.                         <h2 class="intro-x font-bold text-2xl xl:text-3xl text-center xl:text-left">
  54.                             Bitte geben Sie Ihr neues Passwort ein.
  55.                         </h2>
  56.                         <div class="mb-20">
  57.                             <div class="text-muted font-weight-bold mt-5 mb-5">Bitte geben Sie Ihr neues Passwort ein.</div>
  58.                         </div>
  59.                         <form class="form" method="post" action="/passwort-vergessen/" id="formpasswortvergessen">
  60.                             <div class="form-group mb-5">
  61.                                 <input type="hidden" name="newhash" value="{{ newpassword }}" />
  62.                                 <input class="intro-x login__input form-control py-3 px-4 block" type="password" id="newpassword" placeholder="Passwort" name="password-first" />
  63.                             </div>
  64.                             <div class="form-group mb-5">
  65.                                 <input class="intro-x login__input form-control py-3 px-4 block" type="password" id="newpasswordrepeat" placeholder="Passwort wiederholen" name="password-second" />
  66.                             </div>
  67.                             <div class="intro-x mt-2 text-center xl:text-left">
  68.                                 <button class="btn btn-primary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top" id="newpasswordbutton">Speichern</button>
  69.                             </div>
  70.                         </form>
  71.                     <div class="intro-x mt-2 text-center xl:text-left">
  72.                         <a href="/"><button class="btn btn-secondary py-3 px-4 w-full xl:w-32 xl:mr-3 align-top">zur Startseite</button></a>
  73.                     </div>
  74.                         <div class="form-inline mt-5 alert-info full-width" style="display: none;">
  75.                             <div class="alert alert-danger show flex items-center mb-2" role="alert"> <i data-lucide="alert-triangle" class="w-6 h-6 mr-2"></i>
  76.                                 <span class="passwordalert"></span>
  77.                             </div>
  78.                         </div>
  79.                     <!--end::Login Sign in form-->
  80.                 {% endif %}
  81.                 <div class="intro-x mt-10 xl:mt-24 text-slate-600 dark:text-slate-500 text-center xl:text-left">
  82.                     <a href="{% if barrierefreiheit is defined and barrierefreiheit is not empty %} {{barrierefreiheit}} {% endif %}" class="text-primary dark:text-slate-200 mr-5"> Barrierefreiheit </a>
  83.                     <a href="{% if datenschutz is defined and datenschutz is not empty %} {{datenschutz}} {% endif %}" class="text-primary dark:text-slate-200 mr-5"> Datenschutz </a>
  84.                     <a href="{% if impressum is defined and impressum is not empty %} {{impressum}} {% endif %}" class="text-primary dark:text-slate-200"> Impressum </a>
  85.                 </div>
  86.             </div>
  87.         </div>
  88.         <!-- END: Login Form -->
  89.     </div>
  90. </div>
  91. {% endblock %}
  92. {% block scripts %}
  93.     <script src="{{ asset('/js/passwort.js')}}"></script>
  94. {% endblock %}