{% extends "base.html" %}

{% block content %}
<main class="col-md-4 ms-sm-auto col-lg-10 px-md-4">
    <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
        <h1 class="h2">{% block title %}{% endblock %} </h1>
        <div class="btn-toolbar mb-2 mb-md-0">
            {% if user.is_authenticated %}
            <div class="btn-group me-2">
              <a href="{% url 'admin:index' %}" class="btn btn-sm btn-outline-secondary">Admin</a>
            </div>
            <div class="btn-group me-2">
              <a href="{% url 'charts:charts-home' %}" class="btn btn-sm btn-outline-secondary">Charts</a>
            </div>
            <div class="btn-group me-2">
                <button type="button" class="btn btn-sm btn-outline-secondary" data-bs-toggle="modal"
                    data-bs-target="#exportModal">Export</button>
                {% block charts_button %}{% endblock %}
            </div>
            {% endif %}
        </div>
    </div>

    <div class="container">
        {% block details %}{% endblock %}
    </div>
</main>
{% endblock %}

{% block extra_modals %}
{% endblock %}
