PageRenderTime 52ms CodeModel.GetById 30ms app.highlight 2ms RepoModel.GetById 18ms app.codeStats 0ms

/django/contrib/admin/templates/admin/auth/user/change_password.html

https://code.google.com/p/mango-py/
HTML | 55 lines | 48 code | 7 blank | 0 comment | 0 complexity | 2466af00ad86308d4bf6353d1f564b65 MD5 | raw file
 1{% extends "admin/base_site.html" %}
 2{% load i18n admin_modify adminmedia %}
 3{% load url from future %}
 4{% block extrahead %}{{ block.super }}
 5{% url 'admin:jsi18n' as jsi18nurl %}
 6<script type="text/javascript" src="{{ jsi18nurl|default:"../../../../jsi18n/" }}"></script>
 7{% endblock %}
 8{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
 9{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
10{% block breadcrumbs %}{% if not is_popup %}
11<div class="breadcrumbs">
12     <a href="../../../../">{% trans "Home" %}</a> &rsaquo;
13     <a href="../../../">{{ opts.app_label|capfirst|escape }}</a> &rsaquo;
14     <a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> &rsaquo;
15     <a href="../">{{ original|truncatewords:"18" }}</a> &rsaquo;
16     {% trans 'Change password' %}
17</div>
18{% endif %}{% endblock %}
19{% block content %}<div id="content-main">
20<form action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %}
21<div>
22{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
23{% if form.errors %}
24    <p class="errornote">
25    {% blocktrans count form.errors.items|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
26    </p>
27{% endif %}
28
29<p>{% blocktrans with original.username as username %}Enter a new password for the user <strong>{{ username }}</strong>.{% endblocktrans %}</p>
30
31<fieldset class="module aligned">
32
33<div class="form-row">
34  {{ form.password1.errors }}
35  {# TODO: get required class on label_tag #}
36  <label for="id_password1" class="required">{% trans 'Password' %}:</label> {{ form.password1 }}
37</div>
38
39<div class="form-row">
40  {{ form.password2.errors }}
41  {# TODO: get required class on label_tag #}
42  <label for="id_password2" class="required">{% trans 'Password (again)' %}:</label> {{ form.password2 }}
43  <p class="help">{% trans 'Enter the same password as above, for verification.' %}</p>
44</div>
45
46</fieldset>
47
48<div class="submit-row">
49<input type="submit" value="{% trans 'Change password' %}" class="default" />
50</div>
51
52<script type="text/javascript">document.getElementById("id_password1").focus();</script>
53</div>
54</form></div>
55{% endblock %}