{% extends "wagtailadmin/generic/base.html" %}

{% load i18n wagtailadmin_tags static %}

{% block extra_css %}
    {{ block.super }}
    <link rel="stylesheet" href="{% static "request_filters/admin/request_filters.css" %}"/>
{% endblock %}

{% block extra_js %}
    {{ block.super }}
    <script src="{% static "request_filters/admin/chart.js" %}"></script>
    <script src="{% static "request_filters/admin/chart_view.js" %}"></script>
{% endblock %}

{% block main_content %}
    <div class="chart">
        <canvas id="filter-chart"></canvas>
    </div>

    {{ chart|json_script:"chart_data" }}
{% endblock %}
        