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

{% block content %}
<section class="form" style="width:40%;">
	<h1>Inscription</h1>

	<form action="" method="post">
		{{ form.hidden_tag() }}
		<div>
			{{ form.username.label }}
			<div class=desc>{{ form.username.description }}</div>
			{{ form.username() }}
			{% for error in form.username.errors %}
			<span class="msgerror">{{ error }}</span>
			{% endfor %}
		</div>
		<div>
			{{ form.email.label }}
			{{ form.email() }}
			{% for error in form.email.errors %}
			<span class="msgerror">{{ error }}</span>
			{% endfor %}
		</div>
		<div>
			{{ form.password.label }}
			{{ form.password() }}
			{% for error in form.password.errors %}
			<span class="msgerror">{{ error }}</span>
			{% endfor %}
		</div>
		<div>
			{{ form.password2.label }}
			{{ form.password2() }}
			{% for error in form.password2.errors %}
			<span class="msgerror">{{ error }}</span>
			{% endfor %}
		</div>
		<div>
			{{ form.guidelines.label }}
			{{ form.guidelines() }}
			{% for error in form.guidelines.errors %}
			<span class="msgerror">{{ error }}</span>
			{% endfor %}
		</div>
		<div>
			{{ form.newsletter.label }}
			{{ form.newsletter() }}
			<div style="font-size:80%;color:rgba(0,0,0,.5)">{{ form.newsletter.description }}</div>
			{% for error in form.newsletter.errors %}
			<span class="msgerror">{{ error }}</span>
			{% endfor %}
		</div>
		<div>{{ form.submit(class_="bg-green") }}</div>
	</form>
</div>
</section>
{% endblock %}
