From 1e09ebf24bbecefdeef066c48e215b9f4e5081d3 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 20 Dec 2024 16:35:23 -0500 Subject: [PATCH] membershipworks: Move refresh data button into a separate component file --- .../components/refresh_data_button.dj.html | 10 ++++++++++ .../membershipworks/event_registrations.dj.html | 13 +------------ 2 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 membershipworks/templates/membershipworks/components/refresh_data_button.dj.html diff --git a/membershipworks/templates/membershipworks/components/refresh_data_button.dj.html b/membershipworks/templates/membershipworks/components/refresh_data_button.dj.html new file mode 100644 index 0000000..7c89026 --- /dev/null +++ b/membershipworks/templates/membershipworks/components/refresh_data_button.dj.html @@ -0,0 +1,10 @@ + +
+ Loading... +
+ Refresh Data +
diff --git a/membershipworks/templates/membershipworks/event_registrations.dj.html b/membershipworks/templates/membershipworks/event_registrations.dj.html index 8d3bd91..4f10289 100644 --- a/membershipworks/templates/membershipworks/event_registrations.dj.html +++ b/membershipworks/templates/membershipworks/event_registrations.dj.html @@ -22,18 +22,7 @@ {% bootstrap_button extra_classes="btn-sm" href=email_link target="_blank" content="Email all attendees" %}
{% include "cmsmanage/components/download_table.dj.html" %}
-
- -
- Loading... -
- Refresh Data -
-
+
{% include "membershipworks/components/refresh_data_button.dj.html" %}

Registrations for {{ event.details.ttl|nh3 }}

{% render_table table %}