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

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

{% block content %}

    <div class="container-fluid">
        <div class="d-flex align-items-start justify-content-between mb-3">
            <h2 class="mb-0">Collections</h2>
            {% if request.user.is_staff %}
                <a class="btn btn-sm btn-primary" href="{% url 'atlas:exam_create' %}">Create collection</a>
            {% endif %}
        </div>

        <p class="mb-3">Manage and browse case collections. Use filters to narrow results.</p>

        {% render_table table %}

        {% include "generic/partials/filter_bar.html" with filter=filter app_name=app_name collapse_id="bottom-filter-body" %}
    </div>

{% endblock %}
