src/hdalab/templates/ajax_identification/ajax_login.html
author rougeronj
Fri, 09 Jan 2015 11:08:09 +0100
changeset 421 2eee6f61f1c6
parent 384 83adb3fd0efd
child 627 3fd558fa38b1
permissions -rw-r--r--
Add horizontal representation icon

{% load static %}
{% load i18n %}

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

<div class="register">
	<h1>{% trans "Identifiants" %}</h1>
	{% if form.errors %}
		<p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
	{% endif %}
	<form action="{% url 'ajax_login' %}" method='post' id="login-form">
		{% csrf_token %}
		<input type="hidden" name="next" value="{% url 'ajax_login_ok' %}" />
		<p>
			<label for="username">{% trans "Nom d'utilisateur" %}</label>
			{{form.username}}
		</p>
		<p>
            <label for="password">{% trans "Mot de passe" %}</label>
            {{form.password}}
        </p>
        <div class="btn-submit">
        	<p><a id="login-popup-close" class="btn-previous" href="#">{% trans "Cancel" %}</a><input type="submit" value="{% trans 'Login' %}" /></p>
	  	</div>
	</form>
	<p class="champs"><a href="{% url 'auth_password_reset' %}" target="_blank">{% trans "Forgot password ?" %}</a></p>
	<p class="champs"><a href="{% url 'registration_register' %}" target="_blank">{% trans "Still not a user ? Create an account" %}</a></p>
</div>