Project

General

Profile

Statistics
| Branch: | Revision:

root / env / lib / python2.7 / site-packages / django / contrib / admin / templates / admin / login.html @ 1a305335

History | View | Annotate | Download (2.01 KB)

1
{% extends "admin/base_site.html" %}
2
{% load i18n admin_static %}
3
{% load url from future %}
4

    
5
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/login.css" %}" />{% endblock %}
6

    
7
{% block bodyclass %}login{% endblock %}
8

    
9
{% block nav-global %}{% endblock %}
10

    
11
{% block content_title %}{% endblock %}
12

    
13
{% block breadcrumbs %}{% endblock %}
14

    
15
{% block content %}
16
{% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}
17
<p class="errornote">
18
{% blocktrans count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
19
</p>
20
{% endif %}
21

    
22
{% if form.non_field_errors or form.this_is_the_login_form.errors %}
23
{% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %}
24
<p class="errornote">
25
    {{ error }}
26
</p>
27
{% endfor %}
28
{% endif %}
29

    
30
<div id="content-main">
31
<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %}
32
  <div class="form-row">
33
    {% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %}
34
    <label for="id_username" class="required">{% trans 'Username:' %}</label> {{ form.username }}
35
  </div>
36
  <div class="form-row">
37
    {% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %}
38
    <label for="id_password" class="required">{% trans 'Password:' %}</label> {{ form.password }}
39
    <input type="hidden" name="this_is_the_login_form" value="1" />
40
    <input type="hidden" name="next" value="{{ next }}" />
41
  </div>
42
  {% url 'admin_password_reset' as password_reset_url %}
43
  {% if password_reset_url %}
44
  <div class="password-reset-link">
45
    <a href="{{ password_reset_url }}">{% trans 'Forgotten your password or username?' %}</a>
46
  </div>
47
  {% endif %}
48
  <div class="submit-row">
49
    <label>&nbsp;</label><input type="submit" value="{% trans 'Log in' %}" />
50
  </div>
51
</form>
52

    
53
<script type="text/javascript">
54
document.getElementById('id_username').focus()
55
</script>
56
</div>
57
{% endblock %}