{% extends 'layout_web.html.twig' %}
{% block title %}{{ 'login.resetpassword'|trans }} | {{parent()}}{% endblock %}
{% block body %}
<div class="page">
<div class="page-single">
<div class="container">
<div class="row">
<div class="col col-md-5 mx-auto">
<div class="text-center mb-6">
<img src="{{ asset('/images/logo-pbn-200x100.png')}}" alt="{{appname}}">
</div>
{% for flashError in app.flashes('reset_password_error') %}
<div class="alert alert-danger" role="alert">{{ flashError }}</div>
{% endfor %}
{{ form_start(requestForm,{ 'attr': {'class': 'card'} }) }}
<div class="card-body p-6">
<div class="float-right">
<a href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': ''})) }}"><span class="flag flag-fr mr-3"></span></a>
<a href="{{ path(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}"><span class="flag flag-gb"></span></a>
</div>
<div class="card-title">{{ 'resetpswd.title'|trans }}</div>
<div class="form-group">
{{ form_label(requestForm.email, 'resetpswd.label', { 'label_attr': {'class': 'form-label'} }) }}
{{ form_widget(requestForm.email,{ 'attr': {'class': form_errors(requestForm.email) == null ? 'form-control' : 'form-control is-invalid'} }) }}
<div class="form-error invalid-feedback">
{{ form_errors(requestForm.email) }}
</div>
</div>
<p><small>{{ 'resetpswd.txt'|trans }}</small></p>
<button class="btn btn-primary btn-block">{{ 'resetpswd.sendbtn'|trans }}</button>
</div>
{{ form_end(requestForm) }}
</div>
</div>
</div>
</div>
</div>
{% endblock %}