templates/reset_password/request.html.twig line 1

Open in your IDE?
  1. {% extends app.request.xmlHttpRequest ? 'base_ajax.html.twig' : 'base.html.twig' %}
  2. {% block title %}Zapomenuté heslo{% endblock %}
  3. {% block body %}
  4.     {% for flash_error in app.flashes('reset_password_error') %}
  5.         <div class="alert alert-danger" role="alert">{{ flash_error }}</div>
  6.     {% endfor %}
  7.     <section class="vh-lg- 100 mt-5 mt-lg-0 bg-soft d-flex align-items-center">
  8.         <div class="container">
  9.             {% if app.request.xmlHttpRequest == false %}
  10.                 <p class="text-center">
  11.                     <a href="{{ path('app_login') }}" class="d-flex align-items-center justify-content-center">
  12.                         <svg class="icon icon-xs me-2" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z" clip-rule="evenodd"></path></svg>
  13.                         Zpět na přihlášení
  14.                     </a>
  15.                 </p>
  16.             {% endif %}
  17.             <div class="row justify-content-center form-bg-image">
  18.                 <div class="col-12 d-flex align-items-center justify-content-center">
  19.                     <div class="signin-inner my-3 my-lg-0 bg-white shadow border-0 rounded p-4 p-lg-5 w-100 fmxw-500">
  20.                         <h1 class="h3">Zapomenuté heslo</h1>
  21.                         <p class="mb-4">Své heslo si obnovte snadno pomocí formuláře níže. Následně vám zašleme heslo pro obnovu a budete mít možnost nastavit se heslo nové.</p>
  22.                         {{ form_start(requestForm) }}
  23.                             <div class="mb-4">
  24.                                 <label for="email">Přihlašovací jméno nebo email</label>
  25.                                 <div class="input-group">
  26. {#                                    <input type="email" class="form-control" id="email" placeholder="john@company.com" required autofocus>#}
  27.                                     {{ form_widget(requestForm.email, {'attr': {'class': 'form-control', 'placeholder': 'email@example.com', 'required': 'required', 'autofocus': true}}) }}
  28.                                 </div>
  29.                             </div>
  30.                             <div class="d-grid">
  31.                                 <button type="submit" class="btn btn-gray-800">Pokračovat</button>
  32.                             </div>
  33.                         {{ form_end(requestForm) }}
  34.                     </div>
  35.                 </div>
  36.             </div>
  37.         </div>
  38.     </section>
  39. {% endblock %}