From bfe9fc7c2c9959225db9ef75b8e9d77f8ce6d963 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 22 Jan 2024 13:17:02 -0500 Subject: [PATCH] membershipworks: Add download buttons for event reports --- .../components/download_table.dj.html | 17 +++++ .../event_index_report.dj.html | 1 + .../event_month_report.dj.html | 1 + .../membershipworks/event_year_report.dj.html | 1 + membershipworks/views.py | 30 +++++++- pdm.lock | 72 ++++++++++++++++++- pyproject.toml | 1 + 7 files changed, 119 insertions(+), 4 deletions(-) create mode 100644 membershipworks/templates/membershipworks/components/download_table.dj.html diff --git a/membershipworks/templates/membershipworks/components/download_table.dj.html b/membershipworks/templates/membershipworks/components/download_table.dj.html new file mode 100644 index 0000000..50d05f5 --- /dev/null +++ b/membershipworks/templates/membershipworks/components/download_table.dj.html @@ -0,0 +1,17 @@ +{% load export_url from django_tables2 %} + + diff --git a/membershipworks/templates/membershipworks/event_index_report.dj.html b/membershipworks/templates/membershipworks/event_index_report.dj.html index fd5664d..448c3d4 100644 --- a/membershipworks/templates/membershipworks/event_index_report.dj.html +++ b/membershipworks/templates/membershipworks/event_index_report.dj.html @@ -5,5 +5,6 @@ {% block title %}Event Report Index{% endblock %} {% block breadcrumbs %}{% endblock %} {% block content %} + {% include "membershipworks/components/download_table.dj.html" %} {% render_table table %} {% endblock %} diff --git a/membershipworks/templates/membershipworks/event_month_report.dj.html b/membershipworks/templates/membershipworks/event_month_report.dj.html index 3e6e2a3..fc83bc7 100644 --- a/membershipworks/templates/membershipworks/event_month_report.dj.html +++ b/membershipworks/templates/membershipworks/event_month_report.dj.html @@ -13,6 +13,7 @@ {% endblock %} {% block content %} + {% include "membershipworks/components/download_table.dj.html" %} {% render_table table %}