{% extends "base/base.html" %}

{% block content %}
<section class="form">
	<h1>Suppression du compte</h2>
	<form action="{{ url_for('delete_account') }}" method="post">
		{{ del_form.hidden_tag() }}
		<div>
			{{ del_form.transfer.label }}
			{{ del_form.transfer() }}
			<div style="font-size: 80%; color: gray">{{ del_form.transfer.description }}</div>
			{% for error in del_form.transfer.errors %}
			<span class=msgerror>{{ error }}</span>
			{% endfor %}
			<br>
			{{ del_form.delete.label }}
			{{ del_form.delete(checked=False) }}
			<div style="font-size:80%;color:rgba(0,0,0,.5)">{{ del_form.delete.description }}</div>
			{% for error in del_form.delete.errors %}
			<span class="msgerror">{{ error }}</span>
			{% endfor %}
		</div>
		<div>
			{{ del_form.old_password.label }}
			{{ del_form.old_password(placeholder='************') }}
			{% for error in del_form.old_password.errors %}
			<span class="msgerror">{{ error }}</span>
			{% endfor %}
		</div>
		<div>{{ del_form.submit(class_="bg-error") }}</div>
	</form>
</section>
{% endblock %}
