PageRenderTime 12ms CodeModel.GetById 7ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/admin/templates/mako/admin/login.html

https://code.google.com/p/mango-py/
HTML | 38 lines | 27 code | 11 blank | 0 comment | 0 complexity | 3d7c5c5e4651099719d398aff5fd2210 MD5 | raw file
 1<%inherit file="admin/base_site.html"/>
 2
 3
 4${self.block_stylesheet()}<%def name="block_stylesheet()"><%namespace name="admin" module="django.contrib.admin.templatetags.adminmedia" />${admin_media_prefix()}css/login.css</%def>
 5
 6${self.block_bodyclass()}<%def name="block_bodyclass()">login</%def>
 7
 8${self.block_content_title()}<%def name="block_content_title()"></%def>
 9
10${self.block_breadcrumbs()}<%def name="block_breadcrumbs()"></%def>
11
12${self.block_content()}<%def name="block_content()">
13
14% if error_message:
15
16<p class="errornote">${error_message}</p>
17
18% endif
19
20<div id="content-main">
21<form action="${app_path}" method="post" id="login-form">${ csrf_tag(csrf_token) }
22  <div class="form-row">
23    <label for="id_username">${trans('Username:')}</label> <input type="text" name="username" id="id_username" />
24  </div>
25  <div class="form-row">
26    <label for="id_password">${trans('Password:')}</label> <input type="password" name="password" id="id_password" />
27    <input type="hidden" name="this_is_the_login_form" value="1" />
28  </div>
29  <div class="submit-row">
30    <label>&nbsp;</label><input type="submit" value="${trans('Log in')}" />
31  </div>
32</form>
33
34<script type="text/javascript">
35document.getElementById('id_username').focus()
36</script>
37</div>
38</%def>