From fbf44a10e7623caed596aa7d2bd3eb2fc120a2d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 3 May 2023 20:09:15 -0400 Subject: [PATCH] feat: expiration date for widgets closes #10495 --- public/language/en-GB/admin/extend/widgets.json | 2 ++ src/views/admin/partials/widget-settings.tpl | 11 +++++++++++ src/views/admin/partials/widgets/show_hide_groups.tpl | 4 ++-- src/widgets/index.js | 8 +++++++- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/public/language/en-GB/admin/extend/widgets.json b/public/language/en-GB/admin/extend/widgets.json index 0d24c2f32a..9adfb98ab5 100644 --- a/public/language/en-GB/admin/extend/widgets.json +++ b/public/language/en-GB/admin/extend/widgets.json @@ -26,5 +26,7 @@ "container.placeholder": "Drag and drop a container or enter HTML here.", "show-to-groups": "Show to groups", "hide-from-groups": "Hide from groups", + "start-date": "Start date", + "end-date": "End date", "hide-on-mobile": "Hide on mobile" } \ No newline at end of file diff --git a/src/views/admin/partials/widget-settings.tpl b/src/views/admin/partials/widget-settings.tpl index 260f111d0b..24f28bcb8a 100644 --- a/src/views/admin/partials/widget-settings.tpl +++ b/src/views/admin/partials/widget-settings.tpl @@ -10,6 +10,17 @@ +
+
+ + +
+
+ + +
+
+
diff --git a/src/views/admin/partials/widgets/show_hide_groups.tpl b/src/views/admin/partials/widgets/show_hide_groups.tpl index 583a405947..766dad3b92 100644 --- a/src/views/admin/partials/widgets/show_hide_groups.tpl +++ b/src/views/admin/partials/widgets/show_hide_groups.tpl @@ -1,6 +1,6 @@
- +
- +