{% extends "base.html" %}
{% load static %}
{% load i18n %}

{% block title %}{% trans "Registration" %}{% endblock %}

{% block css_import %}
{{block.super}}
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/forms.css' %}" />
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/login.css' %}" />
{% endblock %}

{% block login_actif %}actif{% endblock %}

{% block main_content %}
<div class="register hdalab-form">
	<h1>{% trans "Nouvel Utilisateur" %}</h1>
	{% if form.errors %}
		<p class="error">{% trans "Oups ! Il y a un problème dans les données du nouvel utilisateur" %}</p>
	{% endif %}
	<form action="." method='post'>
		{% csrf_token %}
		<input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'home' %}{% endif %}" />
		<p>
			<label for="username">{% trans "Nom d'utilisateur" %}</label>
			{{form.username}}
		</p>
		<p>
			<label for="email">{% trans "E-mail" %}</label>
			{{form.email}}
		</p>
		<p>
			<label for="password1">{% trans "Mot de passe" %}</label>
			{{form.password1}}
		</p>
		<p>
			<label for="password2">{% trans "Mot de passe (Verification)" %}</label>
			{{form.password2}}
		</p>
		<div class="btn-submit">
  	    	<p><a class="btn-previous" href="{% url 'login' %}">{% trans "Precedent" %}</a><input type="submit" value="{% trans 'Submit' %}" /></p>
		</div>
	</form>
</div>
{% endblock %}



