{% extends "base.html" %}
{% block styles %}
    <link href="{{ url_for('public', path='vendor/select2/select2.min.css') }}" rel="stylesheet"/>
    <link href="{{ url_for('public', path='vendor/DataTables/css/dataTables.'+minify+'css') }}" rel="stylesheet"/>
{% endblock %}
{% block html_body %}
<script src="{{ url_for('public', path='vendor/jQuery/jquery.'+minify+'js') }}"></script>
<script src="{{ url_for('public', path='vendor/select2/select2.min.js') }}"></script>

<body data-bs-theme="dark">
    <div class="page">
        <!-- Sidebar -->
        {% include "components/aside.html" %}
        <!-- Navbar -->
        {% include "components/header.html" %}

        <div class="page-wrapper">
            <!-- Page header -->
            <div class="page-header d-print-none">
                <div class="container-fluid">
                    <div class="row g-2 align-items-center">
                        <div class="col">
                            <!-- Page pre-title -->
                            <div class="page-pretitle">
                                {{ subtitle or '' }}
                            </div>
                            <h2 class="page-title">
                                {{ (model and name) or title or '' }}
                            </h2>
                        </div>
                        <!-- Page title actions -->
                        {% include "components/global_actions.html" %}
                    </div>
                </div>
            </div>
            <!-- Page body -->
            <div class="page-body">
                <div class="container-fluid">
                    {% block body %}
                    {% endblock %}
                </div>
            </div>
            {% include "components/footer.html" %}
        </div>
    </div>
</body>
{% endblock %}
{% block scripts %}
    <script src="{{ url_for('public', path='vendor/tabler/js/dark-theme.'+minify+'js') }}"></script>
    <script src="{{ url_for('public', path='vendor/tabler/js/tabler.'+minify+'js') }}"></script>
{% endblock %}