0
|
1 |
{% extends "admin/page_base_site.html" %} |
|
2 |
{% load i18n %} |
|
3 |
|
|
4 |
{% block extrastyle %}{% load adminmedia %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/login.css" />{% endblock %} |
|
5 |
|
|
6 |
{% block bodyclass %}{% endblock %} |
|
7 |
|
|
8 |
{% block content_title %}{% trans "Connexion" %}{% endblock %} |
|
9 |
|
|
10 |
{% block breadcrumbs %}{% endblock %} |
|
11 |
|
|
12 |
{% block content %} |
|
13 |
{% if error_message %} |
|
14 |
<p class="errornote">{{ error_message }}</p> |
|
15 |
{% endif %} |
|
16 |
<div id="content-main"> |
|
17 |
<form action="{{ app_path }}" method="post" id="login-form"> |
|
18 |
<table> |
|
19 |
<tr> |
|
20 |
<th><label for="id_username">{% trans 'Username:' %}</label></th> |
|
21 |
<td><input type="text" name="username" id="id_username" /></td> |
|
22 |
</tr> |
|
23 |
<tr> |
|
24 |
<th><label for="id_password">{% trans 'Password:' %}</label></th> |
|
25 |
<td><input type="password" name="password" id="id_password" /></td> |
|
26 |
<td><input type="hidden" name="this_is_the_login_form" value="1" /></td> |
|
27 |
</tr> |
|
28 |
<tr> |
|
29 |
<td><a href="{% url registration.views.register %}" >{% trans "Create an account" %}</a> |
|
30 |
<a href="{% url django.contrib.auth.views.password_reset %}" >{% trans "Forget password?" %}</a> |
|
31 |
</td> |
|
32 |
<td><label> </label><input type="submit" value="{% trans 'Log in' %}" /></td> |
|
33 |
</tr> |
|
34 |
</table> |
|
35 |
</form> |
|
36 |
|
|
37 |
<script type="text/javascript"> |
|
38 |
document.getElementById('id_username').focus() |
|
39 |
</script> |
|
40 |
</div> |
|
41 |
{% endblock %} |