{% trans_default_domain 'rapsysuser' %}
{% extends '@RapsysUser/_base.html.twig' %}
{% block content %}
	<section id="rapsysuser_login">
		<header>
			<h2><a href="{{ self_url }}">{{ title }}</a></h2>
		</header>
		{{ form_start(login) }}
			<div>
				{{ form_row(login.mail) }}

				{{ form_row(login.password) }}

				{{ form_row(login.submit) }}
			</div>

			{# Render CSRF token etc .#}
			<footer style="display:none">{{ form_rest(login) }}</footer>
		{{ form_end(login) }}
	</section>
	{% if recover is defined %}
		<section id="rapsysuser_recover">
			<header>
				<h2><a href="{{ recover_url }}">{% trans %}Recover{% endtrans %}</a></h2>
			</header>
			{{ form_start(recover) }}
				<div>
					{{ form_row(recover.mail) }}

					{{ form_row(recover.submit) }}
				</div>

				{# Render CSRF token etc .#}
				<footer style="display:none">{{ form_rest(recover) }}</footer>
			{{ form_end(recover) }}
		</section>
	{% endif %}
{% endblock %}
