PageRenderTime 82ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/django/contrib/admin/templates/registration/password_change_form.html

https://code.google.com/p/mango-py/
HTML | 51 lines | 38 code | 13 blank | 0 comment | 0 complexity | 27c3624ae333ddf106585d913fd0bc26 MD5 | raw file
 1{% extends "admin/base_site.html" %}
 2{% load i18n adminmedia %}
 3{% load url from future %}
 4{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
 5{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %}
 6{% block breadcrumbs %}<div class="breadcrumbs"><a href="../">{% trans 'Home' %}</a> &rsaquo; {% trans 'Password change' %}</div>{% endblock %}
 7
 8{% block title %}{% trans 'Password change' %}{% endblock %}
 9
10{% block content %}<div id="content-main">
11
12<form action="" method="post">{% csrf_token %}
13<div>
14{% if form.errors %}
15    <p class="errornote">
16    {% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
17    </p>
18{% endif %}
19
20<h1>{% trans 'Password change' %}</h1>
21
22<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
23
24<fieldset class="module aligned wide">
25
26<div class="form-row">
27    {{ form.old_password.errors }}
28    <label for="id_old_password" class="required">{% trans 'Old password' %}:</label>{{ form.old_password }}
29</div>
30
31<div class="form-row">
32    {{ form.new_password1.errors }}
33    <label for="id_new_password1" class="required">{% trans 'New password' %}:</label>{{ form.new_password1 }}
34</div>
35
36<div class="form-row">
37{{ form.new_password2.errors }}
38    <label for="id_new_password2" class="required">{% trans 'Password (again)' %}:</label>{{ form.new_password2 }}
39</div>
40
41</fieldset>
42
43<div class="submit-row">
44    <input type="submit" value="{% trans 'Change my password' %}" class="default" />
45</div>
46
47<script type="text/javascript">document.getElementById("id_old_password").focus();</script>
48</div>
49</form></div>
50
51{% endblock %}