{% extends 'atlas/base.html' %}

{% load render_table from django_tables2 %}
{% block content_container_class %}container-fluid content-wide px-3{% endblock %}
{% block css %}
{% endblock %}

{% block content %}

    <div class="container-fluid">
        <h2>Schemas</h2>
        Create a new schema <a href="{% url 'atlas:question_schema_create' %}">here</a>.
        <details>
            <summary>
                <h4>Filter</h4>
            </summary>
            <div id="view-filter-options">
                <form action="" method="get">
                    {{ filter.form }}
                    <input class="btn btn-primary btn-sm mt-1 mb-1" type="submit" />
                </form>
            </div>
            View my <a href='{% url "atlas:case_view" %}?author={{request.user.id}}'>cases</a>.
        </details>
        {% render_table table %}
    </div>

    <div id="exam-options"></div>
{% endblock %}
