aboutsummaryrefslogtreecommitdiffstats
path: root/example/templates
diff options
context:
space:
mode:
authorRob Hudson2010-02-11 14:19:30 -0800
committerRob Hudson2010-02-11 14:19:30 -0800
commit9327cd86b2c9f1db0108c97e630c6d5610e65b0d (patch)
tree30244cedcf7daf60e6540a75d6875546832232cc /example/templates
parent98d919189d5b25057cb0cb7ee486a591a1f6cead (diff)
downloaddjango-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')
-rw-r--r--example/templates/admin/login.html34
-rw-r--r--example/templates/index.html16
-rw-r--r--example/templates/jquery/index.html21
-rw-r--r--example/templates/mootools/index.html19
-rw-r--r--example/templates/prototype/index.html20
5 files changed, 110 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>&nbsp;</label><input type="submit" value="{% trans 'Log in' %}" />
+ </div>
+</form>
+
+<script type="text/javascript">
+document.getElementById('id_username').focus()
+</script>
+</div>
+{% endblock %}
diff --git a/example/templates/index.html b/example/templates/index.html
new file mode 100644
index 0000000..6fd3a92
--- /dev/null
+++ b/example/templates/index.html
@@ -0,0 +1,16 @@
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <title>Index of Tests</title>
+</head>
+<body>
+
+ <h1>Index of Tests</h1>
+ <ul>
+ <li><a href="/jquery/index/">jQuery 1.2.6</a></li>
+ <li><a href="/mootools/index/">MooTools 1.2.4</a></li>
+ <li><a href="/prototype/index/">Prototype 1.6.1</a></li>
+ </ul>
+
+</body>
+</html>
diff --git a/example/templates/jquery/index.html b/example/templates/jquery/index.html
new file mode 100644
index 0000000..419f348
--- /dev/null
+++ b/example/templates/jquery/index.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <title>Old jQuery Test</title>
+ <style>
+ .hide {display:none;}
+ #v {font-weight:bold;}
+ </style>
+ <script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}/js/jquery.js"></script>
+ <script type="text/javascript" charset="utf-8">
+ $(document).ready(function() {
+ $('p.hide').show();
+ $('#v').append($.fn.jquery);
+ });
+ </script>
+</head>
+<body>
+ <h1>jQuery Test</h1>
+ <p class="hide">If you see this, jQuery <span id="v"></span> is working.</p>
+</body>
+</html>
diff --git a/example/templates/mootools/index.html b/example/templates/mootools/index.html
new file mode 100644
index 0000000..1dac10c
--- /dev/null
+++ b/example/templates/mootools/index.html
@@ -0,0 +1,19 @@
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <title>MooTools Test</title>
+ <style>
+ .hide {display:none;}
+ </style>
+ <script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}/js/mootools.js"></script>
+ <script type="text/javascript" charset="utf-8">
+ window.addEvent('domready', function() {
+ $$('p.hide').setStyle('display', 'block');
+ });
+ </script>
+</head>
+<body>
+ <h1>MooTools Test</h1>
+ <p class="hide">If you see this, MooTools is working.</p>
+</body>
+</html>
diff --git a/example/templates/prototype/index.html b/example/templates/prototype/index.html
new file mode 100644
index 0000000..c8fefc3
--- /dev/null
+++ b/example/templates/prototype/index.html
@@ -0,0 +1,20 @@
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <title>Prototype Test</title>
+ <style>
+ .hide {display:none;}
+ </style>
+ <script type="text/javascript" charset="utf-8" src="{{ MEDIA_URL }}/js/prototype.js"></script>
+ <script type="text/javascript" charset="utf-8">
+ document.observe('dom:loaded', function() {
+ $('showme').removeClassName('hide');
+ });
+ </script>
+</head>
+<body>
+ <h1>Prototype Test</h1>
+ <p class="hide" id="showme">If you see this, Prototype is working.</p>
+</body>
+</html>
+