{% extends 'core_main_app/_render/admin/theme/tools/box.html' %}

{% block box_title %}List all Templates{% endblock %}

{% block box_body %}

<div class="row">
    <div class="col-md-12">
        <table class="table table-bordered table-striped table-hover table-schema-viewer-template">
            <tr>
                <th>Template Name</th>
                <th>Is visible</th>
                <th>Is default</th>
            </tr>
            {% for schema_viewer_template in data.schema_viewer_template_list %}
                {% cycle 'even' '' as rowcolors silent %}
                <tr class="{{ rowcolors }}" data-template-schema-viewer-id={{schema_viewer_template.id}}>
                    <td>{{ schema_viewer_template.template.display_name }}</td>
                    <td>
                        <input class="chk-is-visible"
                               type="checkbox"
                               {% if schema_viewer_template.is_visible %} checked {% endif %}
                               {% if schema_viewer_template.is_default %} disabled {% endif %}
                        />
                    </td>
                    <td>
                        <input class="chk-is-default"
                               type="checkbox"
                               {% if schema_viewer_template.is_default %} checked {% endif %} />
                    </td>
                </tr>
            {% empty %}
                <tr>
                    <td class="empty" colspan="3">
                        No template registered.
                    </td>
                </tr>
            {% endfor %}
        </table>
    </div>
</div>

{% endblock %}

{% block box_footer %}
{% endblock %}