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

{% load render_table from django_tables2 %}
{% block css %}
{% endblock %}

{% block content %}

    <div id="view-filter-options">
        <h3>Filter Rapids</h3>
        <form action="" method="get">
            {{ filter.form }}
            <input class="btn btn-primary btn-sm mt-1 mb-1" type="submit" />
        </form>
    </div>
    {% render_table table %}

    <button id="button-select-add-exam"
            hx-get="{% url 'generic:generic_exam_htmx' %}?type=rapid"
            hx-target="#action-result"
            hx-swap="innerHTML"
            data-exam_list_url="{% url 'api-1:rapid_user_exams' %}"
            data-type="rapid" data-csrf="{{ csrf_token}}">Add selected questions to
        exam</button>
    <div id="exam-options"></div>

    <script type="text/javascript">
        $(document).ready(function () {


        });
    </script>
{% endblock %}