From b26950c427a53b6cd45c64c5d535f70c6e32d9fc Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 22 Jul 2023 16:23:57 +0530 Subject: [PATCH] Add new subscription list table to the subscriber edit UI modal. --- frontend/src/assets/style.scss | 9 ++++-- frontend/src/views/SubscriberForm.vue | 40 +++++++++++++++++++++++++-- frontend/src/views/Subscribers.vue | 3 +- 3 files changed, 46 insertions(+), 6 deletions(-) diff --git a/frontend/src/assets/style.scss b/frontend/src/assets/style.scss index e5b697f..a968015 100644 --- a/frontend/src/assets/style.scss +++ b/frontend/src/assets/style.scss @@ -657,9 +657,14 @@ section.lists { .toggle-advanced { margin-top: 10px; } +} - .b-table { - margin-top: 25px; +.b-table.subscriptions { + overflow-y: scroll; + max-height: 250px; + + thead th, tbody td { + padding: 10px; } } diff --git a/frontend/src/views/SubscriberForm.vue b/frontend/src/views/SubscriberForm.vue index e78bf56..0985d23 100644 --- a/frontend/src/views/SubscriberForm.vue +++ b/frontend/src/views/SubscriberForm.vue @@ -47,7 +47,6 @@ :selected="form.lists" :all="lists.results" > -
@@ -65,9 +64,9 @@
- +
+
{{ $t('subscribers.attribs') }}
@@ -76,6 +75,41 @@
+
+
{{ $tc('globals.terms.subscriptions', 2) }} ({{ data.lists.length }})
+
+ + +
+ + {{ props.row.name }} + +
+ + + {{ ' ' }} + {{ $t(`lists.optins.${props.row.optin}`) }} + {{ ' ' }} +
+
+ + {{ props.row.optin === 'double' ? props.row.subscriptionStatus : '-' }} + + + {{ $utils.niceDate(props.row.subscriptionCreatedAt, true) }} + + + {{ $utils.niceDate(props.row.subscriptionCreatedAt, true) }} + +
+
+
+
+
-