summaryrefslogtreecommitdiffstats
path: root/webapp/django/contrib/admin/templates/admin/template_validator.html
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/django/contrib/admin/templates/admin/template_validator.html')
-rw-r--r--webapp/django/contrib/admin/templates/admin/template_validator.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/webapp/django/contrib/admin/templates/admin/template_validator.html b/webapp/django/contrib/admin/templates/admin/template_validator.html
new file mode 100644
index 0000000000..510614386c
--- /dev/null
+++ b/webapp/django/contrib/admin/templates/admin/template_validator.html
@@ -0,0 +1,31 @@
+{% extends "admin/base_site.html" %}
+
+{% block content %}
+
+<div id="content-main">
+
+<form action="" method="post">
+
+{% if form.errors %}
+<p class="errornote">Your template had {{ form.errors|length }} error{{ form.errors|pluralize }}:</p>
+{% endif %}
+
+<fieldset class="module aligned">
+<div class="form-row{% if form.errors.site %} error{% endif %} required">
+ {% if form.errors.site %}{{ form.errors.site }}{% endif %}
+ <h4><label for="id_site">{{ form.site.label }}:</label> {{ form.site }}</h4>
+</div>
+<div class="form-row{% if form.errors.template %} error{% endif %} required">
+ {% if form.errors.template %}{{ form.errors.template }}{% endif %}
+ <h4><label for="id_template">{{ form.template.label }}:</label> {{ form.template }}</h4>
+</div>
+</fieldset>
+
+<div class="submit-row">
+ <input type="submit" value="Check for errors" class="default" />
+</div>
+
+</form>
+</div>
+
+{% endblock %}