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

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

{% block content %}

<div id="view-filter-options">
    <h3>Physics User Answers</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="delete-selected-button">Delete selected answers</button>

{% endblock %}

{% block js %}
<script>
    $(document).ready(function () {
        $("#delete-selected-button").on("click", () => {
            window.delete_multiple(
                "{% url 'physics:user_answer_delete_multiple' %}", "{{ csrf_token }}"
            )
        })
    });
</script>
{% endblock %}