src/hdalab/templates/registration/login.html
author ymh <ymh.work@gmail.com>
Tue, 10 Mar 2015 18:41:29 +0100
changeset 529 f479d60ca502
parent 433 bffe8dfa3a7f
permissions -rw-r--r--
form to change profile info
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' %}" />
529
f479d60ca502 form to change profile info
ymh <ymh.work@gmail.com>
parents: 433
diff changeset
    10
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/forms.css' %}" />
384
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    11
{% endblock %}
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    12
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    13
{% block login_actif %}actif{% endblock %}
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    14
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    15
{% block main_content %}
529
f479d60ca502 form to change profile info
ymh <ymh.work@gmail.com>
parents: 433
diff changeset
    16
    <div class="register hdalab-form">
433
bffe8dfa3a7f minor translation corrections
rougeronj
parents: 384
diff changeset
    17
    	<h1>{% trans "Authentication" %}</h1>
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    18
        {% if form.errors %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    19
        <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
    20
        {% endif %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    21
        <form action="" method='post' id="login-form">
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    22
            {% csrf_token %}
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    23
            <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
    24
            <p>
433
bffe8dfa3a7f minor translation corrections
rougeronj
parents: 384
diff changeset
    25
	            <label for="username">{% trans "Username" %}</label>
384
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    26
	            {{form.username}}
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
	        <p>
433
bffe8dfa3a7f minor translation corrections
rougeronj
parents: 384
diff changeset
    29
	            <label for="password">{% trans "Password" %}</label>
384
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    30
	            {{form.password}}
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    31
	        </p>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    32
	        <div class="btn-submit">
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    33
	        	<p><input type="submit" value="{% trans 'Login' %}" /></p>
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    34
		  	</div>
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    35
        </form>
384
83adb3fd0efd Update login (and ajax login), and registration pages
rougeronj
parents: 335
diff changeset
    36
        <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
    37
        <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
    38
	</div>
335
51225e522007 little changes and auth templates in hdalab base
cavaliet
parents:
diff changeset
    39
{% endblock %}