author | anoop |
Tue, 09 Mar 2010 11:39:34 +0530 | |
changeset 214 | 679c7e237052 |
permissions | -rw-r--r-- |
214
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
1 |
{% extends "base.html" %} |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
2 |
{% load i18n %} |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
3 |
|
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
4 |
{% block extrastyle %}{% load adminmedia %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/login.css" />{% endblock %} |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
5 |
|
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
6 |
{% block bodyclass %}login{% endblock %} |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
7 |
|
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
8 |
{% block content_title %}{% endblock %} |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
9 |
|
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
10 |
{% block breadcrumbs %}{% endblock %} |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
11 |
|
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
12 |
{% block content %} |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
13 |
{% if error_message %} |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
14 |
<p class="errornote">{{ error_message }}</p> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
15 |
{% endif %} |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
16 |
<div id="content-main"> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
17 |
<form action="{{ app_path }}" method="post" id="login-form"> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
18 |
<div class="form-row"> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
19 |
<label for="id_username">{% trans 'Username:' %}</label> <input type="text" name="username" id="id_username" /> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
20 |
</div> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
21 |
<div class="form-row"> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
22 |
<label for="id_password">{% trans 'Password:' %}</label> <input type="password" name="password" id="id_password" /> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
23 |
<input type="hidden" name="this_is_the_login_form" value="1" /> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
24 |
</div> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
25 |
<div class="submit-row"> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
26 |
<label> </label><input type="submit" value="{% trans 'Log in' %}" /> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
27 |
</div> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
28 |
</form> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
29 |
|
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
30 |
<script type="text/javascript"> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
31 |
document.getElementById('id_username').focus() |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
32 |
</script> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
33 |
</div> |
679c7e237052
added two more templates for displaying admin login form and admin logout message.
anoop
parents:
diff
changeset
|
34 |
{% endblock %} |