{% extends extend_str %}
{% load crispy_forms_tags %}
{% load render_table from django_tables2 %}

{% block content %}

    {% if header %} <h1> {{ header }} </h1> <hr>{% endif %}
    {% if sub_header %} <h2> {{ sub_header }} </h2> <hr>{% endif %}

    {% if filter %}
        <h4> {{ filter_header }} </h4>
        <h5> Filter Results </h5>
        <form action="" method="get" enctype="multipart/form-data">
            {% crispy filter.form %}
        </form>
    {% endif %}

    <h4> {{ form_header }} </h4>
    <form action="" method="post">{% csrf_token %}
        {% crispy form %}
        <h4>{{ table_header }}</h4>
        {% render_table table %}
    </form>

{% endblock content %}