templates/user/recover-password.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block head %}
  3. {% endblock %}
  4. {% block body %}
  5.     <style>
  6.         .footer{
  7.             margin-top: 0 !important;
  8.         }
  9.         a:hover{
  10.             color: #5902EC;
  11.         }
  12.     </style>
  13.     <!-- HEADING -->
  14.     <div class="container-fluid bg-blue sctn-access">
  15.         <div class="row pt-5">
  16.             
  17.             <div class="col-12 d-flex justify-content-center">
  18.                 <div class="card-access bg-white">
  19.                     <div class="row p-4">
  20.                         <div class="col-12">
  21.                             <p><b>Recover password</b></p>
  22.                         </div>
  23.                         {% if status == 'done' %}
  24.                             <p class="text-center mt-5">Hemos enviado un mensaje a su email</p>
  25.                             <div class="col-12 d-flex justify-content-center mt-4">
  26.                                 <a href="{{ path('home') }}">
  27.                                     <button class="btn-md blue">Volver al inicio</button>
  28.                                 </a>
  29.                             </div>
  30.                         {% elseif status == 'error' %}
  31.                             <p class="text-center mt-5">No existe ningún usuario con este correo electrónico. Pruebe a:</p>
  32.                             
  33.                             <div class="col-12 d-flex justify-content-center mt-4">
  34.                                 <a href="{{ path('access') }}?format=2">
  35.                                     <button class="btn-md blue">Registrarse</button>
  36.                                 </a>
  37.                             </div>
  38.                         {% elseif status == 'sender_error' %}
  39.                             <p class="text-center mt-5">No se ha podido enviar el email, vuelva a intentarlo en unos minutos</p>
  40.                             <div class="col-12 d-flex justify-content-center mt-4">
  41.                                 <a href="{{ path('access') }}?format=2">
  42.                                     <button class="btn-md blue">Registrarse</button>
  43.                                 </a>
  44.                             </div>
  45.                         {% else %}
  46.                             <form method="POST" action="{{ path('recoverPassword') }}" class="form">
  47.                                 <div class="col-12 mt-4 mb-3">
  48.                                     <p class="pb-2">Email</p>
  49.                                     <input type="email" name="email" required>
  50.                                 </div>
  51.                                 <div class="col-12 d-flex justify-content-center mb-4">
  52.                                     <button type="submit" class="btn-md blue">Enter</button>
  53.                                 </div>
  54.                             </form>
  55.                             <div class="col-12 pt-2 d-flex justify-content-center">
  56.                                 <p>Remember your password? <a href="{{ path('access') }}?format=1" class="clr-green">Log in</a></p>
  57.                             </div>
  58.                         {% endif %}
  59.                     </div>
  60.                 </div>
  61.             </div>
  62.             
  63.         </div>
  64.     </div>
  65. {% endblock %}