PageRenderTime 24ms CodeModel.GetById 19ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
HTML | 64 lines | 47 code | 17 blank | 0 comment | 0 complexity | 8ecce4fe5e2e066b67611646b8e10619 MD5 | raw file
 1<%inherit file="admin/base_site.html"/>
 2
 3<%namespace name="admin" module="django.contrib.admin.templatetags.adminmedia" />
 4
 5${self.block_extrahead()}<%def name="block_extrahead()">
 6<script type="text/javascript" src="../../../../jsi18n/"></script>
 7</%def>
 8${self.block_stylesheet()}<%def name="block_stylesheet()">${admin_media_prefix()}css/forms.css</%def>
 9${self.block_bodyclass()}<%def name="block_bodyclass()">${opts.app_label}-${opts.object_name.lower()} change-form</%def>
10${self.block_breadcrumbs()}<%def name="block_breadcrumbs()">
11% if not is_popup:
12
13<div class="breadcrumbs">
14     <a href="../../../../">${trans("Home")}</a> &rsaquo;
15     <a href="../../">${ escape(capfirst(opts.verbose_name_plural)) }</a> &rsaquo;
16     <a href="../">${ escape(truncatewords(original,18)) }</a> &rsaquo;
17     ${trans('Change password')}
18</div>
19
20% endif
21</%def>
22<%def name="block_content()"><div id="content-main">
23<form action="${form_url or ''}" method="post" id="${opts.module_name}_form">${ csrf_tag(csrf_token) }
24<div>
25
26% if is_popup:
27<input type="hidden" name="_popup" value="1" />
28% endif
29
30
31% if 'errors' in form and form['errors']:
32
33    <p class="errornote">
34    <%def name="blocktrans()"><% counter = len(form.errors.items) %>Please correct the error${counter|pluralize} below.</%def>${blocktrans()}
35    </p>
36
37% endif
38
39
40<p><%def name="blocktrans()">Enter a new password for the user <strong>${original.username}</strong>.</%def>${blocktrans()}</p>
41
42<fieldset class="module aligned">
43
44<div class="form-row">
45  ${form['password1'].errors}
46  <label for="id_password1" class="required">${trans('Password')}:</label> ${form['password1']}
47</div>
48
49<div class="form-row">
50  ${form['password2'].errors}
51  <label for="id_password2" class="required">${trans('Password (again)')}:</label> ${form['password2']}
52  <p class="help">${trans('Enter the same password as above, for verification.')}</p>
53</div>
54
55</fieldset>
56
57<div class="submit-row">
58<input type="submit" value="${trans('Change password')}" class="default" />
59</div>
60
61<script type="text/javascript">document.getElementById("id_password1").focus();</script>
62</div>
63</form></div>
64</%def>