{% extends app.request.xmlHttpRequest ? 'base_ajax.html.twig' : 'base.html.twig' %}
{% block title %}Zapomenuté heslo{% endblock %}
{% block body %}
{% for flash_error in app.flashes('reset_password_error') %}
<div class="alert alert-danger" role="alert">{{ flash_error }}</div>
{% endfor %}
<section class="vh-lg- 100 mt-5 mt-lg-0 bg-soft d-flex align-items-center">
<div class="container">
{% if app.request.xmlHttpRequest == false %}
<p class="text-center">
<a href="{{ path('app_login') }}" class="d-flex align-items-center justify-content-center">
<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>
Zpět na přihlášení
</a>
</p>
{% endif %}
<div class="row justify-content-center form-bg-image">
<div class="col-12 d-flex align-items-center justify-content-center">
<div class="signin-inner my-3 my-lg-0 bg-white shadow border-0 rounded p-4 p-lg-5 w-100 fmxw-500">
<h1 class="h3">Zapomenuté heslo</h1>
<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>
{{ form_start(requestForm) }}
<div class="mb-4">
<label for="email">Přihlašovací jméno nebo email</label>
<div class="input-group">
{# <input type="email" class="form-control" id="email" placeholder="john@company.com" required autofocus>#}
{{ form_widget(requestForm.email, {'attr': {'class': 'form-control', 'placeholder': 'email@example.com', 'required': 'required', 'autofocus': true}}) }}
</div>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-gray-800">Pokračovat</button>
</div>
{{ form_end(requestForm) }}
</div>
</div>
</div>
</div>
</section>
{% endblock %}