{% extends 'paxalia/base.html' %} {% load static i18n %} {% block title %}{% trans "Scheduled Reports" %} – Paxalia Analytics{% endblock %} {% block page_title %}{% trans "Scheduled Reports" %}{% endblock %} {% block page_subtitle %}{% trans "Recurring email traffic digests, with an optional PDF attachment" %}{% endblock %} {% block extra_css %} {% endblock %} {% block dashboard_content %}

{% trans "Create a Report" %}

{% csrf_token %}

{% trans "Sent by the send_scheduled_reports management command — schedule it via cron/Celery beat (daily is fine; due-ness is checked against when each report last sent). A PDF is attached automatically if weasyprint is installed; otherwise just the email goes out." %}

{% trans "Reports" %}

{% if reports %} {% for report in reports %} {% endfor %}
{% trans "Name" %} {% trans "Frequency" %} {% trans "Recipients" %} {% trans "Status" %} {% trans "Last sent" %} {% trans "Actions" %}
{{ report.name }} {{ report.get_frequency_display }} {{ report.recipient_list|length }} {% if report.is_active %}{% trans "Active" %}{% else %}{% trans "Paused" %}{% endif %} {{ report.last_sent_at|date:"Y-m-d H:i"|default:"—" }}
{% csrf_token %}
{% csrf_token %}
{% else %}
{% trans "No scheduled reports yet." %}
{% endif %}
{% endblock %} {% block page_scripts %} {% endblock %}