PageRenderTime 71ms CodeModel.GetById 67ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

https://code.google.com/p/mango-py/
HTML | 66 lines | 53 code | 13 blank | 0 comment | 0 complexity | e950f7692f69c8a83504c1ac894ec816 MD5 | raw file
 1<%inherit file="admin/base_site.html"/>
 2<%namespace name="admin" module="django.contrib.admin.templatetags.adminmedia" />
 3${self.block_extrastyle()}<%def name="block_extrastyle()"><link rel="stylesheet" type="text/css" href="${ admin_media_prefix() }css/forms.css" /></%def>
 4${self.block_userlinks()}<%def name="block_userlinks()">
 5<% docsroot = url(django_admindocs_docroot) %>
 6% if docsroot:
 7<a href="${docsroot}">${trans('Documentation')}</a> / 
 8% endif
 9${trans('Change password')} / <a href="../logout/">${trans('Log out')}</a></%def>
10${self.block_breadcrumbs()}<%def name="block_breadcrumbs()"><div class="breadcrumbs"><a href="../">${trans('Home')}</a> &rsaquo; ${trans('Password change')}</div></%def>
11
12${self.block_title()}<%def name="block_title()">${trans('Password change')}</%def>
13
14${self.block_content()}<%def name="block_content()">
15<div id="content-main">
16
17<form action="" method="post">${ csrf_tag(csrf_token) }
18<div>
19% if form.errors:
20    <p class="errornote">
21    % if len(form.errors.items())==1:
22        Please correct the error below.
23    % else:
24        Please correct the errors below.
25    % endif
26    </p>
27% endif
28
29<h1>${trans('Password change')}</h1>
30
31<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>
32
33<fieldset class="module aligned wide">
34
35<div class="form-row">
36% if 'old_password' in form and form['old_password'].errors:
37    ${form['old_password'].errors}
38% endif
39    <label for="id_old_password" class="required">${trans('Old password')}:</label>${form['old_password']}
40</div>
41
42<div class="form-row">
43% if form['new_password1'].errors:
44    ${form['new_password1'].errors}
45% endif
46    <label for="id_new_password1" class="required">${trans('New password')}:</label>${form['new_password1']}
47</div>
48
49<div class="form-row">
50% if form['new_password2'].errors:
51    ${form['new_password2'].errors}
52% endif
53    <label for="id_new_password2" class="required">${trans('Password (again)')}:</label>${form['new_password2']}
54</div>
55
56</fieldset>
57  
58<div class="submit-row">
59    <input type="submit" value="${ trans('Change my password') }" class="default" />
60</div>
61
62<script type="text/javascript">document.getElementById("id_old_password").focus();</script>
63</div>
64</form></div>
65
66</%def>