{% load static %} {% load django_bootstrap5 %} {% load i18n %} {% comment %} Base template for the staff dashboard. Every asset an adopter might replace loads here, in a named block. Re-skin by pointing LOWBONO_DASHBOARD_TEMPLATE_BASE at your own base rather than overriding this one by path. Your base must satisfy six requirements, each of which fails silently (a 200 with no error) if missed: 1. class="dash-body" on — dashboard.css is scoped under it 2. load lowbono/dashboard/dashboard.css — the filter/builder toggle labels are ::after content, not markup 3. load lowbono/dashboard/tabletools.js — implements default_hidden_columns 4. load Bootstrap 5 CSS and JS — collapse and dropdown depend on it 5. load chart.js >= 4 — v2 silently draws nothing 6. emit vendor JS before extra_js — querybuilder.js needs TomSelect defined {% endcomment %} {% block title %}{{ page_title|default:_("Staff Dashboard") }}{% endblock %} {% bootstrap_css %} {% block dashboard_vendor_css %} {# Icons are decoration only — every renderer that uses one also renders text. #} {% endblock %} {% block extra_head %}{% endblock %} {% block dashboard_nav %}
{% endblock %}
{% bootstrap_messages %} {% block content %}{% endblock %}
{% bootstrap_javascript %} {% block dashboard_vendor_js %} {% endblock %} {% block extra_js %}{% endblock %}