From 1743ca82f5a7bf979865be50244c1b8dc0243941 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Wed, 31 Jul 2024 17:42:02 +0530 Subject: [PATCH] Added: Confirmation modal when deleting cart rules and while changes credit slip status --- .../cart_rules/modal_confirm_bulk_delete.tpl | 46 ++++++ .../cart_rules/modal_confirm_delete.tpl | 59 +++++++ .../controllers/slip/_status_change_link.tpl | 2 +- .../controllers/slip/modal_confirm_update.tpl | 49 ++++++ admin/themes/default/template/modal.tpl | 8 +- classes/CartRule.php | 24 +++ .../admin/AdminCartRulesController.php | 91 ++++++++++- controllers/admin/AdminSlipController.php | 42 +++++ js/admin/cart-rules.js | 144 ++++++++++++++++++ js/admin/slips.js | 52 +++++++ 10 files changed, 511 insertions(+), 6 deletions(-) create mode 100644 admin/themes/default/template/controllers/cart_rules/modal_confirm_bulk_delete.tpl create mode 100644 admin/themes/default/template/controllers/cart_rules/modal_confirm_delete.tpl create mode 100644 admin/themes/default/template/controllers/slip/modal_confirm_update.tpl create mode 100644 js/admin/cart-rules.js diff --git a/admin/themes/default/template/controllers/cart_rules/modal_confirm_bulk_delete.tpl b/admin/themes/default/template/controllers/cart_rules/modal_confirm_bulk_delete.tpl new file mode 100644 index 000000000..b4403b359 --- /dev/null +++ b/admin/themes/default/template/controllers/cart_rules/modal_confirm_bulk_delete.tpl @@ -0,0 +1,46 @@ +{* +* Since 2010 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through this link for complete license : https://store.webkul.com/license.html +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information. +* +* @author Webkul IN +* @copyright Since 2010 Webkul IN +* @license https://store.webkul.com/license.html +*} + + \ No newline at end of file diff --git a/admin/themes/default/template/controllers/cart_rules/modal_confirm_delete.tpl b/admin/themes/default/template/controllers/cart_rules/modal_confirm_delete.tpl new file mode 100644 index 000000000..fe60f1a2b --- /dev/null +++ b/admin/themes/default/template/controllers/cart_rules/modal_confirm_delete.tpl @@ -0,0 +1,59 @@ +{* +* Since 2010 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through this link for complete license : https://store.webkul.com/license.html +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information. +* +* @author Webkul IN +* @copyright Since 2010 Webkul IN +* @license https://store.webkul.com/license.html +*} + + \ No newline at end of file diff --git a/admin/themes/default/template/controllers/slip/_status_change_link.tpl b/admin/themes/default/template/controllers/slip/_status_change_link.tpl index 958a76581..c1d720530 100644 --- a/admin/themes/default/template/controllers/slip/_status_change_link.tpl +++ b/admin/themes/default/template/controllers/slip/_status_change_link.tpl @@ -17,7 +17,7 @@ * @license LICENSE.txt *} - + {l s='Change Status'} diff --git a/admin/themes/default/template/controllers/slip/modal_confirm_update.tpl b/admin/themes/default/template/controllers/slip/modal_confirm_update.tpl new file mode 100644 index 000000000..a8942c335 --- /dev/null +++ b/admin/themes/default/template/controllers/slip/modal_confirm_update.tpl @@ -0,0 +1,49 @@ +{* +* Since 2010 Webkul. +* +* NOTICE OF LICENSE +* +* All right is reserved, +* Please go through this link for complete license : https://store.webkul.com/license.html +* +* DISCLAIMER +* +* Do not edit or add to this file if you wish to upgrade this module to newer +* versions in the future. If you wish to customize this module for your +* needs please refer to https://store.webkul.com/customisation-guidelines/ for more information. +* +* @author Webkul IN +* @copyright Since 2010 Webkul IN +* @license https://store.webkul.com/license.html +*} + + \ No newline at end of file diff --git a/admin/themes/default/template/modal.tpl b/admin/themes/default/template/modal.tpl index e785c99d4..360e1cc48 100644 --- a/admin/themes/default/template/modal.tpl +++ b/admin/themes/default/template/modal.tpl @@ -26,10 +26,10 @@