{% extends 'base.html.twig' %}
{% block head %}
{% endblock %}
{% block body %}
<style>
.footer{
margin-top: 0 !important;
}
a:hover{
color: #5902EC;
}
</style>
<!-- HEADING -->
<div class="container-fluid bg-blue sctn-access">
<div class="row pt-5">
<div class="col-12 d-flex justify-content-center">
<div class="card-access bg-white">
<div class="row p-4">
<div class="col-12">
<p><b>Recover password</b></p>
</div>
{% if status == 'done' %}
<p class="text-center mt-5">Hemos enviado un mensaje a su email</p>
<div class="col-12 d-flex justify-content-center mt-4">
<a href="{{ path('home') }}">
<button class="btn-md blue">Volver al inicio</button>
</a>
</div>
{% elseif status == 'error' %}
<p class="text-center mt-5">No existe ningún usuario con este correo electrónico. Pruebe a:</p>
<div class="col-12 d-flex justify-content-center mt-4">
<a href="{{ path('access') }}?format=2">
<button class="btn-md blue">Registrarse</button>
</a>
</div>
{% elseif status == 'sender_error' %}
<p class="text-center mt-5">No se ha podido enviar el email, vuelva a intentarlo en unos minutos</p>
<div class="col-12 d-flex justify-content-center mt-4">
<a href="{{ path('access') }}?format=2">
<button class="btn-md blue">Registrarse</button>
</a>
</div>
{% else %}
<form method="POST" action="{{ path('recoverPassword') }}" class="form">
<div class="col-12 mt-4 mb-3">
<p class="pb-2">Email</p>
<input type="email" name="email" required>
</div>
<div class="col-12 d-flex justify-content-center mb-4">
<button type="submit" class="btn-md blue">Enter</button>
</div>
</form>
<div class="col-12 pt-2 d-flex justify-content-center">
<p>Remember your password? <a href="{{ path('access') }}?format=1" class="clr-green">Log in</a></p>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}