Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (2.43 KB)

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

    
6
{% block extrahead %}{{ block.super }}
7
{% url 'admin:jsi18n' as jsi18nurl %}
8
<script type="text/javascript" src="{{ jsi18nurl|default:"../../../../jsi18n/" }}"></script>
9
{% endblock %}
10
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />{% endblock %}
11
{% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %}
12
{% if not is_popup %}
13
{% block breadcrumbs %}
14
<div class="breadcrumbs">
15
<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
16
&rsaquo; <a href="{% url 'admin:app_list' app_label=opts.app_label %}">{{ opts.app_label|capfirst|escape }}</a>
17
&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>
18
&rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}{{ original.pk }}">{{ original|truncatewords:"18" }}</a>
19
&rsaquo; {% trans 'Change password' %}
20
</div>
21
{% endblock %}
22
{% endif %}
23
{% block content %}<div id="content-main">
24
<form action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% csrf_token %}{% block form_top %}{% endblock %}
25
<div>
26
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
27
{% if form.errors %}
28
    <p class="errornote">
29
    {% blocktrans count counter=form.errors.items|length %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
30
    </p>
31
{% endif %}
32

    
33
<p>{% blocktrans with username=original.username %}Enter a new password for the user <strong>{{ username }}</strong>.{% endblocktrans %}</p>
34

    
35
<fieldset class="module aligned">
36

    
37
<div class="form-row">
38
  {{ form.password1.errors }}
39
  {# TODO: get required class on label_tag #}
40
  <label for="id_password1" class="required">{% trans 'Password' %}:</label> {{ form.password1 }}
41
</div>
42

    
43
<div class="form-row">
44
  {{ form.password2.errors }}
45
  {# TODO: get required class on label_tag #}
46
  <label for="id_password2" class="required">{% trans 'Password (again)' %}:</label> {{ form.password2 }}
47
  <p class="help">{% trans 'Enter the same password as above, for verification.' %}</p>
48
</div>
49

    
50
</fieldset>
51

    
52
<div class="submit-row">
53
<input type="submit" value="{% trans 'Change password' %}" class="default" />
54
</div>
55

    
56
<script type="text/javascript">document.getElementById("id_password1").focus();</script>
57
</div>
58
</form></div>
59
{% endblock %}