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

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

{% block title %}{% trans "Login" %}{% 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 "Identifiants" %}</h1>
        {% if form.errors %}
        <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
        {% endif %}
        <form action="" method='post' id="login-form">
            {% 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="password">{% trans "Mot de passe" %}</label>
	            {{form.password}}
	        </p>
	        <div class="btn-submit">
	        	<p><input type="submit" value="{% trans 'Login' %}" /></p>
		  	</div>
        </form>
        <p class="champs"><a href="{% url 'auth_password_reset' %}">{% trans "Forgot password ?" %}</a></p>
        <p class="champs"><a href="{% url 'registration_register' %}">{% trans "Still not a user ? Create an account" %}</a></p>
	</div>
{% endblock %}