equal
deleted
inserted
replaced
|
1 {% load static %} |
1 {% load i18n %} |
2 {% load i18n %} |
|
3 |
|
4 <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/login.css' %}" /> |
|
5 |
2 <div class="register"> |
6 <div class="register"> |
3 {% if form.errors %} |
7 <h1>{% trans "Identifiants" %}</h1> |
4 <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p> |
8 {% if form.errors %} |
5 {% endif %} |
9 <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p> |
6 <form action="{% url 'ajax_login' %}" method='post' id="login-form"> |
10 {% endif %} |
7 {% csrf_token %} |
11 <form action="{% url 'ajax_login' %}" method='post' id="login-form"> |
8 <input type="hidden" name="next" value="{% url 'ajax_login_ok' %}" /> |
12 {% csrf_token %} |
9 {{form.as_p}} |
13 <input type="hidden" name="next" value="{% url 'ajax_login_ok' %}" /> |
10 <button class="button" type="submit" value="login">{% trans "login" %}</button> |
14 <p> |
11 </form> |
15 <label for="username">{% trans "Nom d'utilisateur" %}</label> |
12 <p> </p> |
16 {{form.username}} |
13 <p><a target="_blank" href="{% url 'registration_register' %}">{% trans "Still not a user ? Create an account" %}</a> |
17 </p> |
14 <p><a target="_blank" href="{% url 'auth_password_reset' %}">{% trans "Forgot password ?" %}</a> |
18 <p> |
|
19 <label for="password">{% trans "Mot de passe" %}</label> |
|
20 {{form.password}} |
|
21 </p> |
|
22 <div class="btn-submit"> |
|
23 <p><a id="login-popup-close" class="btn-previous" href="#">{% trans "Cancel" %}</a><input type="submit" value="{% trans 'Login' %}" /></p> |
|
24 </div> |
|
25 </form> |
|
26 <p class="champs"><a href="{% url 'auth_password_reset' %}" target="_blank">{% trans "Forgot password ?" %}</a></p> |
|
27 <p class="champs"><a href="{% url 'registration_register' %}" target="_blank">{% trans "Still not a user ? Create an account" %}</a></p> |
15 </div> |
28 </div> |
16 |
|