src/hdalab/templates/registration/registration_form.html
author rougeronj
Wed, 10 Dec 2014 11:34:54 +0100
changeset 384 83adb3fd0efd
parent 335 51225e522007
child 400 9b290d5c11d8
permissions -rw-r--r--
Update login (and ajax login), and registration pages

{% 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/login.css' %}" />
{% endblock %}

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

{% block main_content %}
<div class="register">
	<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 %}