PageRenderTime 13ms CodeModel.GetById 9ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/admin/templates/admin/login.html

https://code.google.com/p/mango-py/
HTML | 50 lines | 41 code | 9 blank | 0 comment | 0 complexity | 7bcae11f0737930db26b0f30859bf74f MD5 | raw file
 1{% extends "admin/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 %}login{% endblock %}
 7
 8{% block nav-global %}{% endblock %}
 9
10{% block content_title %}{% endblock %}
11
12{% block breadcrumbs %}{% endblock %}
13
14{% block content %}
15{% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}
16<p class="errornote">
17{% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
18</p>
19{% endif %}
20
21{% if form.non_field_errors or form.this_is_the_login_form.errors %}
22{% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %}
23<p class="errornote">
24    {{ error }}
25</p>
26{% endfor %}
27{% endif %}
28
29<div id="content-main">
30<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %}
31  <div class="form-row">
32    {% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %}
33    <label for="id_username" class="required">{% trans 'Username:' %}</label> {{ form.username }}
34  </div>
35  <div class="form-row">
36    {% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %}
37    <label for="id_password" class="required">{% trans 'Password:' %}</label> {{ form.password }}
38    <input type="hidden" name="this_is_the_login_form" value="1" />
39    <input type="hidden" name="next" value="{{ next }}" />
40  </div>
41  <div class="submit-row">
42    <label>&nbsp;</label><input type="submit" value="{% trans 'Log in' %}" />
43  </div>
44</form>
45
46<script type="text/javascript">
47document.getElementById('id_username').focus()
48</script>
49</div>
50{% endblock %}