{% extends 'security/login.html.twig' %}
{% block title %}Reset your password
{% endblock %}
{% block bodyclass %}class="login"{% endblock %}
{% block body %}
{% for flashError in app.flashes('reset_password_error') %}
<div class="alert alert-danger" role="alert">{{ flashError }}</div>
{% endfor %}
<div class="login_wrapper">
<div class="form login_form">
<section class="login_content">
<h1>{{ agent is not defined or not agent ? "frontoffice.reset_client_password_title"|trans : "frontoffice.reset_agent_password_title"|trans }}</h1>
{{ form_start(requestForm) }}
{{ form_row(requestForm.email) }}
<div>
{{ "frontoffice.reset_agent_password_description"|trans }}
</div>
<div class="my-2">
<button class="btn btn-primary">{{ "frontoffice.password_reset_button_text" | trans }}</button>
</div>
{{ form_end(requestForm) }}
{% if (agent is not defined or not agent) %}
<div class="my-2">
<a href="{{ path('app_agent_forgot_password_request') }}">{{ "frontoffice.reset_agent_message"|trans }}</a>
</div>
{% else %}
<div class="my-2">
<a href="{{ path('app_forgot_password_request') }}">{{ "frontoffice.reset_client_message"|trans }}</a>
</div>
{% endif %}
</section>
</div>
</div>
{% endblock %}