diff options
Diffstat (limited to 'example/templates')
| -rw-r--r-- | example/templates/admin/login.html | 34 | ||||
| -rw-r--r-- | example/templates/index.html | 16 | ||||
| -rw-r--r-- | example/templates/jquery/index.html | 21 | ||||
| -rw-r--r-- | example/templates/mootools/index.html | 19 | ||||
| -rw-r--r-- | example/templates/prototype/index.html | 20 | 
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> </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> + | 
