{% extends 'security/layout.html.twig' %}
{% block bodyclass %}security{% endblock %}
{% block content %}
{% set pageData = false %}
{% if platform_front('security.request') %}
{% set pageData = platform_front('security.request') %}
{% endif %}
{{ form_start(requestForm) }}
<div class="{% if pageData and pageData.wrapper is defined %} {{ pageData.wrapper}}{% endif %}">
<div class="col-md-6 col-lg-4 {% if pageData and pageData.container is defined %} {{ pageData.container}}{% endif %}">
{% if pageData.title is defined %}
{% include '@component/atom/title.html.twig' with {'title': pageData.title} %}
{% else %}
<h1>{{ 'mot de passe oublié ?'|trans|capitalize }}</h1>
{%endif%}
<div class="{% if pageData and pageData.form is defined and pageData.form.row is defined %}{{ pageData.form.row}}{%else%}col-12{% endif %}">
<div class="{% if pageData and pageData.form is defined and pageData.form.label is defined %}{{ pageData.form.label }}{% else %}col-12{% endif %}">
{{ form_label(requestForm.email) }}
</div>
<div class="{% if pageData and pageData.form is defined and pageData.form.input is defined %}{{ pageData.form.input }}{% else %}col-12{% endif %}">
{{ form_widget(requestForm.email) }}
</div>
</div>
<div class="{% if pageData and pageData.button is defined and pageData.button.wrapper is defined %}{{ pageData.button.wrapper }}{% else %}col-12{% endif %}">
<input type="submit"
class="{% if pageData.button.class is defined %}{{ pageData.button.class }}{% else %}btn btn-secondary text-uppercase{% endif %}"
value="{% if pageData.button.content is defined %}{{ pageData.button.content|trans }}{% else %}Réinitialiser le mot de passe{% endif %}">
</div>
<div class="{% if pageData and pageData.back is defined and pageData.back.wrapper is defined %}{{ pageData.back.wrapper }}{% else %}col-12{% endif %}">
<a href="{{ path('app_login') }}"
class="btn-security-back {% if pageData.back.class is defined %}{{ pageData.back.class }}{% else %}btn btn-default{% endif %}">
<i class="fa fa-arrow-left"></i>
{% if pageData.back.content is defined %}{{ pageData.back.content|trans }}{% else %}{{ 'retour'|trans|capitalize }}{% endif %}
</a>
</div>
</div>
</div>
{{ form_end(requestForm) }}
{% endblock content %}