diff options
Diffstat (limited to 'parts/django/tests/templates')
26 files changed, 104 insertions, 0 deletions
diff --git a/parts/django/tests/templates/404.html b/parts/django/tests/templates/404.html new file mode 100644 index 0000000..da627e2 --- /dev/null +++ b/parts/django/tests/templates/404.html @@ -0,0 +1 @@ +Django Internal Tests: 404 Error
\ No newline at end of file diff --git a/parts/django/tests/templates/500.html b/parts/django/tests/templates/500.html new file mode 100644 index 0000000..ff028cb --- /dev/null +++ b/parts/django/tests/templates/500.html @@ -0,0 +1 @@ +Django Internal Tests: 500 Error
\ No newline at end of file diff --git a/parts/django/tests/templates/base.html b/parts/django/tests/templates/base.html new file mode 100644 index 0000000..611bc09 --- /dev/null +++ b/parts/django/tests/templates/base.html @@ -0,0 +1,8 @@ +<html> +<head></head> +<body> +<h1>Django Internal Tests: {% block title %}{% endblock %}</h1> +{% block content %} +{% endblock %} +</body> +</html>
\ No newline at end of file diff --git a/parts/django/tests/templates/comments/comment_notification_email.txt b/parts/django/tests/templates/comments/comment_notification_email.txt new file mode 100644 index 0000000..63f1493 --- /dev/null +++ b/parts/django/tests/templates/comments/comment_notification_email.txt @@ -0,0 +1,3 @@ +A comment has been posted on {{ content_object }}. +The comment reads as follows: +{{ comment }} diff --git a/parts/django/tests/templates/custom_admin/add_form.html b/parts/django/tests/templates/custom_admin/add_form.html new file mode 100644 index 0000000..f42ba4b --- /dev/null +++ b/parts/django/tests/templates/custom_admin/add_form.html @@ -0,0 +1 @@ +{% extends "admin/change_form.html" %} diff --git a/parts/django/tests/templates/custom_admin/change_form.html b/parts/django/tests/templates/custom_admin/change_form.html new file mode 100644 index 0000000..f42ba4b --- /dev/null +++ b/parts/django/tests/templates/custom_admin/change_form.html @@ -0,0 +1 @@ +{% extends "admin/change_form.html" %} diff --git a/parts/django/tests/templates/custom_admin/change_list.html b/parts/django/tests/templates/custom_admin/change_list.html new file mode 100644 index 0000000..eebc9c7 --- /dev/null +++ b/parts/django/tests/templates/custom_admin/change_list.html @@ -0,0 +1,7 @@ +{% extends "admin/change_list.html" %} + +{% block extrahead %} +<script type="text/javascript"> +var hello = '{{ extra_var }}'; +</script> +{% endblock %} diff --git a/parts/django/tests/templates/custom_admin/delete_confirmation.html b/parts/django/tests/templates/custom_admin/delete_confirmation.html new file mode 100644 index 0000000..9353c5b --- /dev/null +++ b/parts/django/tests/templates/custom_admin/delete_confirmation.html @@ -0,0 +1 @@ +{% extends "admin/delete_confirmation.html" %} diff --git a/parts/django/tests/templates/custom_admin/delete_selected_confirmation.html b/parts/django/tests/templates/custom_admin/delete_selected_confirmation.html new file mode 100644 index 0000000..9268536 --- /dev/null +++ b/parts/django/tests/templates/custom_admin/delete_selected_confirmation.html @@ -0,0 +1 @@ +{% extends "admin/delete_selected_confirmation.html" %} diff --git a/parts/django/tests/templates/custom_admin/index.html b/parts/django/tests/templates/custom_admin/index.html new file mode 100644 index 0000000..75b6ca3 --- /dev/null +++ b/parts/django/tests/templates/custom_admin/index.html @@ -0,0 +1,6 @@ +{% extends "admin/index.html" %} + +{% block content %} +Hello from a custom index template {{ foo }} +{{ block.super }} +{% endblock %} diff --git a/parts/django/tests/templates/custom_admin/login.html b/parts/django/tests/templates/custom_admin/login.html new file mode 100644 index 0000000..e10a269 --- /dev/null +++ b/parts/django/tests/templates/custom_admin/login.html @@ -0,0 +1,6 @@ +{% extends "admin/login.html" %} + +{% block content %} +Hello from a custom login template +{{ block.super }} +{% endblock %} diff --git a/parts/django/tests/templates/custom_admin/logout.html b/parts/django/tests/templates/custom_admin/logout.html new file mode 100644 index 0000000..3a9301b --- /dev/null +++ b/parts/django/tests/templates/custom_admin/logout.html @@ -0,0 +1,6 @@ +{% extends "registration/logged_out.html" %} + +{% block content %} +Hello from a custom logout template +{{ block.super }} +{% endblock %} diff --git a/parts/django/tests/templates/custom_admin/object_history.html b/parts/django/tests/templates/custom_admin/object_history.html new file mode 100644 index 0000000..aee3b5b --- /dev/null +++ b/parts/django/tests/templates/custom_admin/object_history.html @@ -0,0 +1 @@ +{% extends "admin/object_history.html" %} diff --git a/parts/django/tests/templates/custom_admin/password_change_done.html b/parts/django/tests/templates/custom_admin/password_change_done.html new file mode 100644 index 0000000..0e4a7f2 --- /dev/null +++ b/parts/django/tests/templates/custom_admin/password_change_done.html @@ -0,0 +1,6 @@ +{% extends "registration/password_change_done.html" %} + +{% block content %} +Hello from a custom password change done template +{{ block.super }} +{% endblock %} diff --git a/parts/django/tests/templates/custom_admin/password_change_form.html b/parts/django/tests/templates/custom_admin/password_change_form.html new file mode 100644 index 0000000..1c42493 --- /dev/null +++ b/parts/django/tests/templates/custom_admin/password_change_form.html @@ -0,0 +1,6 @@ +{% extends "registration/password_change_form.html" %} + +{% block content %} +Hello from a custom password change form template +{{ block.super }} +{% endblock %} diff --git a/parts/django/tests/templates/extended.html b/parts/django/tests/templates/extended.html new file mode 100644 index 0000000..e0d8a13 --- /dev/null +++ b/parts/django/tests/templates/extended.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} +{% block title %}Extended template{% endblock %} +{% block content %} +This is just a template extending the base. +{% endblock %}
\ No newline at end of file diff --git a/parts/django/tests/templates/form_view.html b/parts/django/tests/templates/form_view.html new file mode 100644 index 0000000..1487217 --- /dev/null +++ b/parts/django/tests/templates/form_view.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} +{% block title %}Submit data{% endblock %} +{% block content %} +<h1>{{ message }}</h1> +<form method='post' action='.'> +{% if form.errors %} +<p class='warning'>Please correct the errors below:</p> +{% endif %} +<ul class='form'> +{{ form }} +<li><input type='submit' value='Submit'></li> +</ul> +</form> + +{% endblock %}
\ No newline at end of file diff --git a/parts/django/tests/templates/login.html b/parts/django/tests/templates/login.html new file mode 100644 index 0000000..d55e9dd --- /dev/null +++ b/parts/django/tests/templates/login.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} +{% block title %}Login{% endblock %} +{% block content %} +{% if form.has_errors %} +<p>Your username and password didn't match. Please try again.</p> +{% endif %} + +<form method="post" action="."> +<table> +<tr><td><label for="id_username">Username:</label></td><td>{{ form.username }}</td></tr> +<tr><td><label for="id_password">Password:</label></td><td>{{ form.password }}</td></tr> +</table> + +<input type="submit" value="login" /> +<input type="hidden" name="next" value="{{ next }}" /> +</form> +{% endblock %}
\ No newline at end of file diff --git a/parts/django/tests/templates/views/article_archive_day.html b/parts/django/tests/templates/views/article_archive_day.html new file mode 100644 index 0000000..bd2d67f --- /dev/null +++ b/parts/django/tests/templates/views/article_archive_day.html @@ -0,0 +1 @@ +This template intentionally left blank diff --git a/parts/django/tests/templates/views/article_archive_month.html b/parts/django/tests/templates/views/article_archive_month.html new file mode 100644 index 0000000..3f8ff55 --- /dev/null +++ b/parts/django/tests/templates/views/article_archive_month.html @@ -0,0 +1 @@ +This template intentionally left blank
\ No newline at end of file diff --git a/parts/django/tests/templates/views/article_confirm_delete.html b/parts/django/tests/templates/views/article_confirm_delete.html new file mode 100644 index 0000000..3f8ff55 --- /dev/null +++ b/parts/django/tests/templates/views/article_confirm_delete.html @@ -0,0 +1 @@ +This template intentionally left blank
\ No newline at end of file diff --git a/parts/django/tests/templates/views/article_detail.html b/parts/django/tests/templates/views/article_detail.html new file mode 100644 index 0000000..952299d --- /dev/null +++ b/parts/django/tests/templates/views/article_detail.html @@ -0,0 +1 @@ +Article detail template. diff --git a/parts/django/tests/templates/views/article_form.html b/parts/django/tests/templates/views/article_form.html new file mode 100644 index 0000000..e2aa1f9 --- /dev/null +++ b/parts/django/tests/templates/views/article_form.html @@ -0,0 +1,3 @@ +Article form template. + +{{ form.errors }} diff --git a/parts/django/tests/templates/views/datearticle_archive_month.html b/parts/django/tests/templates/views/datearticle_archive_month.html new file mode 100644 index 0000000..3f8ff55 --- /dev/null +++ b/parts/django/tests/templates/views/datearticle_archive_month.html @@ -0,0 +1 @@ +This template intentionally left blank
\ No newline at end of file diff --git a/parts/django/tests/templates/views/urlarticle_detail.html b/parts/django/tests/templates/views/urlarticle_detail.html new file mode 100644 index 0000000..924f310 --- /dev/null +++ b/parts/django/tests/templates/views/urlarticle_detail.html @@ -0,0 +1 @@ +UrlArticle detail template. diff --git a/parts/django/tests/templates/views/urlarticle_form.html b/parts/django/tests/templates/views/urlarticle_form.html new file mode 100644 index 0000000..578dd98 --- /dev/null +++ b/parts/django/tests/templates/views/urlarticle_form.html @@ -0,0 +1,3 @@ +UrlArticle form template. + +{{ form.errors }} |