diff options
| author | Rob Hudson | 2010-02-11 14:19:30 -0800 |
|---|---|---|
| committer | Rob Hudson | 2010-02-11 14:19:30 -0800 |
| commit | 9327cd86b2c9f1db0108c97e630c6d5610e65b0d (patch) | |
| tree | 30244cedcf7daf60e6540a75d6875546832232cc /example/templates/admin | |
| parent | 98d919189d5b25057cb0cb7ee486a591a1f6cead (diff) | |
| download | django-debug-toolbar-9327cd86b2c9f1db0108c97e630c6d5610e65b0d.tar.bz2 | |
Added example project directory.
Currently this allows for easy manual testing a few other Javascript libraries
and whether the debug toolbar javascript conflicts with them.
Diffstat (limited to 'example/templates/admin')
| -rw-r--r-- | example/templates/admin/login.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/example/templates/admin/login.html b/example/templates/admin/login.html new file mode 100644 index 0000000..b15b767 --- /dev/null +++ b/example/templates/admin/login.html @@ -0,0 +1,34 @@ +{% extends "admin/base_site.html" %} +{% load i18n %} + +{% block extrastyle %}{% load adminmedia %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/login.css" />{% endblock %} + +{% block bodyclass %}login{% endblock %} + +{% block content_title %}{% endblock %} + +{% block breadcrumbs %}{% endblock %} + +{% block content %} +{% if error_message %} +<p class="errornote">{{ error_message }}</p> +{% endif %} +<div id="content-main"> +<form action="{{ app_path }}" method="post" id="login-form"> + <div class="form-row"> + <label for="id_username">{% trans 'Username:' %}</label> <input type="text" name="username" id="id_username" value="example" /> + </div> + <div class="form-row"> + <label for="id_password">{% trans 'Password:' %}</label> <input type="password" name="password" id="id_password" value="example" /> + <input type="hidden" name="this_is_the_login_form" value="1" /> + </div> + <div class="submit-row"> + <label> </label><input type="submit" value="{% trans 'Log in' %}" /> + </div> +</form> + +<script type="text/javascript"> +document.getElementById('id_username').focus() +</script> +</div> +{% endblock %} |
