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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
     1
{% extends "base.html" %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
     2
{% load static %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
     3
{% load i18n %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
     4
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
     5
{% block title %}{% trans "Login" %}{% endblock %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
     6
384
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
     7
{% block css_import %}
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
     8
{{block.super}}
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
     9
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/login.css' %}" />
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    10
{% endblock %}
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    11
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    12
{% block login_actif %}actif{% endblock %}
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    13
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    14
{% block main_content %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    15
    <div class="register">
384
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    16
    	<h1>{% trans "Identifiants" %}</h1>
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    17
        {% if form.errors %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    18
        <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    19
        {% endif %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    20
        <form action="" method='post' id="login-form">
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    21
            {% csrf_token %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    22
            <input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'home' %}{% endif %}" />
384
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    23
            <p>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    24
	            <label for="username">{% trans "Nom d'utilisateur" %}</label>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    25
	            {{form.username}}
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    26
	        </p>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    27
	        <p>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    28
	            <label for="password">{% trans "Mot de passe" %}</label>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    29
	            {{form.password}}
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    30
	        </p>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    31
	        <div class="btn-submit">
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    32
	        	<p><input type="submit" value="{% trans 'Login' %}" /></p>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    33
		  	</div>
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    34
        </form>
384
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    35
        <p class="champs"><a href="{% url 'auth_password_reset' %}">{% trans "Forgot password ?" %}</a></p>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    36
        <p class="champs"><a href="{% url 'registration_register' %}">{% trans "Still not a user ? Create an account" %}</a></p>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    37
	</div>
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    38
{% endblock %}