summaryrefslogtreecommitdiff
path: root/lib/grappelli/templates/admin/template_validator.html
blob: 219c442e6aabe07452c11560a8bca8256edb87fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% extends "admin/base_site.html" %}

{# load grp_csrf #}

{% block content %}
    <div id="content-main">
        <form action="" method="post">{% csrf_token %}
            {% if form.error_dict %}
                <p class="errornote">Your template had {{ form.error_dict.items|length }} error{{ form.error_dict.items|pluralize }}:</p>
            {% endif %}
            <fieldset class="module aligned">
                <div class="row{% if form.site.errors %} error{% endif %} required">
                    <div class="column span-4"><h4><label for="id_site" class="required">Site:</label></h4></div>
                    <div class="column span-flexible">
                        {{ form.site }}
                        {% if form.site.errors %}{{ form.site.html_error_list }}{% endif %}
                    </div>
                </div>
                <div class="row{% if form.template.errors %} error{% endif %} required">
                    <div class="column span-4"><h4><label for="id_template" class="required">Template:</label></h4></div>
                    <div class="column span-flexible">
                        {{ form.template }}
                        {% if form.template.errors %}{{ form.template.html_error_list }}{% endif %}
                    </div>
                </div>
            </fieldset>
            <div class="submit-row">
                <ul class="submit-row">
                    <li class="submit-button-container"><input type="submit" value="Check for errors" class="default" /></li>
                </ul>
            </div>
        </form>
    </div>
{% endblock %}