From fc5a911c76118f26215cd73b8b2b723877bbcdd9 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 30 Jan 2024 14:28:09 -0500 Subject: [PATCH] membershipworks: Add admin links to event reports --- .../templates/membershipworks/event_index_report.dj.html | 3 +++ .../templates/membershipworks/event_month_report.dj.html | 3 +++ .../templates/membershipworks/event_year_report.dj.html | 3 +++ membershipworks/views.py | 7 +++++-- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/membershipworks/templates/membershipworks/event_index_report.dj.html b/membershipworks/templates/membershipworks/event_index_report.dj.html index 690b145..2b503dd 100644 --- a/membershipworks/templates/membershipworks/event_index_report.dj.html +++ b/membershipworks/templates/membershipworks/event_index_report.dj.html @@ -3,6 +3,9 @@ {% load render_table from django_tables2 %} {% block title %}Event Report Index{% endblock %} +{% block admin_link %} + {% url 'admin:membershipworks_eventext_changelist' %} +{% endblock %} {% block breadcrumbs %}{% endblock %} {% block content %} {% include "cmsmanage/components/download_table.dj.html" %} diff --git a/membershipworks/templates/membershipworks/event_month_report.dj.html b/membershipworks/templates/membershipworks/event_month_report.dj.html index 9ba386e..c3f2286 100644 --- a/membershipworks/templates/membershipworks/event_month_report.dj.html +++ b/membershipworks/templates/membershipworks/event_month_report.dj.html @@ -3,6 +3,9 @@ {% load render_table from django_tables2 %} {% block title %}Event Report {{ month|date:"N Y" }}{% endblock %} +{% block admin_link %} + {% url 'admin:membershipworks_eventext_changelist' %}?start__year={{ month|date:"Y" }}&start__month={{ month|date:"m" }} +{% endblock %} {% block breadcrumbs %}