{% extends "base.html" %} {% load static erp_tags %} {% block title %}{{ page_title }}{% endblock %} {% block content %} {# Report Selection + Date Range #}
{{ report_title|default:"Report" }}
{% if scope_label %}

Data for: {{ scope_label }}

{% endif %}
{# KPI Summary Cards #} {% if summary_cards %}
{% for card in summary_cards %}

{{ card.label }}

{{ card.value }}
{% endfor %}
{% endif %} {# Chart #}
{{ chart_title|default:"Chart" }}
{# Data Table #}
Data
{% for col in table_columns %} {% endfor %} {% for row in table_data %} {% for val in row %} {% endfor %} {% empty %} {% endfor %}
{{ col.label }}
{% if val is None or val == "" %}—{% else %}{{ val }}{% endif %}
No data for selected period.
{# Definitions: how every number above is computed, so it can be audited #} {% if definitions %}
How these numbers are calculated
{% for term, meaning in definitions %}
{{ term }}
{{ meaning }}
{% endfor %}
{% endif %} {% include "erp/_list_a11y_script.html" %} {% endblock %} {% block javascripts %} {% endblock %}