From 94c7018ddd4616bf21530a8393f1b248fc6841ef Mon Sep 17 00:00:00 2001 From: colemanw Date: Sat, 15 Jul 2023 16:00:33 -0400 Subject: [PATCH] AdminUI - Add toggle for is_active --- ...avedSearch_Administer_Custom_Fields.mgd.php | 18 ++++++++++++++++++ ...avedSearch_Administer_Custom_Groups.mgd.php | 18 ++++++++++++++++++ ...earch_Administer_Financial_Accounts.mgd.php | 18 ++++++++++++++++++ ...edSearch_Administer_Financial_Types.mgd.php | 18 ++++++++++++++++++ ...vedSearch_Administer_Location_Types.mgd.php | 18 ++++++++++++++++++ ...SavedSearch_Administer_Manage_Group.mgd.php | 18 ++++++++++++++++++ ...earch_Administer_Payment_Processors.mgd.php | 18 ++++++++++++++++++ ...avedSearch_Administer_ProfileFields.mgd.php | 18 ++++++++++++++++++ .../SavedSearch_Administer_Profiles.mgd.php | 18 ++++++++++++++++++ ...earch_Administer_Relationship_Types.mgd.php | 18 ++++++++++++++++++ .../managed/SavedSearch_Manage_ACLs.mgd.php | 18 ++++++++++++++++++ ...vedSearch_Manage_Contribution_Pages.mgd.php | 18 ++++++++++++++++++ .../SavedSearch_Manage_Scheduled_Jobs.mgd.php | 18 ++++++++++++++++++ 13 files changed, 234 insertions(+) diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Fields.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Fields.mgd.php index b81900cb6d..b5074525f6 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Fields.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Fields.mgd.php @@ -161,6 +161,24 @@ return [ 'IS NOT EMPTY', ], ], + [ + 'task' => 'enable', + 'entity' => 'CustomField', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable Field'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'CustomField', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable Field'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'CustomField', 'action' => 'detach', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Groups.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Groups.mgd.php index 1be5dafc78..22d01e6709 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Groups.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Custom_Groups.mgd.php @@ -172,6 +172,24 @@ return [ 'path' => '', 'condition' => [], ], + [ + 'task' => 'enable', + 'entity' => 'CustomGroup', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'CustomGroup', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'CustomGroup', 'action' => 'delete', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Accounts.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Accounts.mgd.php index b94aeaa155..87537a6719 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Accounts.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Accounts.mgd.php @@ -154,6 +154,24 @@ return [ 'path' => '', 'condition' => [], ], + [ + 'task' => 'enable', + 'entity' => 'FinancialAccount', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'FinancialAccount', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'FinancialAccount', 'action' => 'delete', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Types.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Types.mgd.php index a662009461..97b14eb98e 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Types.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Financial_Types.mgd.php @@ -161,6 +161,24 @@ return [ 'join' => '', 'target' => 'crm-popup', ], + [ + 'task' => 'enable', + 'entity' => 'FinancialType', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'FinancialType', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'icon' => 'fa-trash', 'text' => E::ts('Delete'), diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Location_Types.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Location_Types.mgd.php index 0fda40d0fc..d0565012c8 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Location_Types.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Location_Types.mgd.php @@ -134,6 +134,24 @@ return [ 'join' => '', 'target' => 'crm-popup', ], + [ + 'task' => 'enable', + 'entity' => 'LocationType', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'LocationType', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'LocationType', 'action' => 'delete', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Manage_Group.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Manage_Group.mgd.php index a55948c135..66fa0460c7 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Manage_Group.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Manage_Group.mgd.php @@ -234,6 +234,24 @@ return [ 'size' => 'btn-xs', 'icon' => 'fa-bars', 'links' => [ + [ + 'task' => 'enable', + 'entity' => 'Group', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'Group', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'Group', 'action' => 'delete', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Payment_Processors.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Payment_Processors.mgd.php index 18f1937130..f6a9395feb 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Payment_Processors.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Payment_Processors.mgd.php @@ -178,6 +178,24 @@ return [ 'path' => '', 'condition' => [], ], + [ + 'task' => 'enable', + 'entity' => 'PaymentProcessor', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'PaymentProcessor', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'PaymentProcessor', 'action' => 'delete', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php index 5d0bb2698f..bda07f5c26 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php @@ -155,6 +155,24 @@ return [ 'style' => 'default', 'condition' => ['is_active', '=', TRUE], ], + [ + 'task' => 'enable', + 'entity' => 'UFField', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'UFField', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'UFField', 'action' => 'delete', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Profiles.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Profiles.mgd.php index b40b6c7aae..d0dc2982d6 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Profiles.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Profiles.mgd.php @@ -228,6 +228,24 @@ return [ 'join' => '', 'target' => '_blank', ], + [ + 'task' => 'enable', + 'entity' => 'UFGroup', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'UFGroup', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'icon' => 'fa-trash', 'text' => E::ts('Delete'), diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php index 499913b983..06e1764b09 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Relationship_Types.mgd.php @@ -129,6 +129,24 @@ return [ 'path' => '', 'condition' => [], ], + [ + 'task' => 'enable', + 'entity' => 'RelationshipType', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'RelationshipType', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'RelationshipType', 'action' => 'delete', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php index 388e7aa526..1138b1b1a6 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php @@ -141,6 +141,24 @@ return [ 'path' => '', 'condition' => [], ], + [ + 'task' => 'enable', + 'entity' => 'ACL', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'ACL', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'ACL', 'action' => 'delete', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Contribution_Pages.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Contribution_Pages.mgd.php index 214cc31475..d263bece39 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Contribution_Pages.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Contribution_Pages.mgd.php @@ -210,6 +210,24 @@ return [ 'join' => '', 'target' => '', ], + [ + 'task' => 'enable', + 'entity' => 'ContributionPage', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'ContributionPage', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'ContributionPage', 'action' => 'delete', diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Scheduled_Jobs.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Scheduled_Jobs.mgd.php index 7af0832ab0..8e97c1cfb5 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Scheduled_Jobs.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Manage_Scheduled_Jobs.mgd.php @@ -203,6 +203,24 @@ return [ 'path' => 'civicrm/admin/job/edit?action=copy&id=[id]', 'condition' => [], ], + [ + 'task' => 'enable', + 'entity' => 'Job', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-on', + 'text' => E::ts('Enable'), + 'style' => 'default', + 'condition' => ['is_active', '=', FALSE], + ], + [ + 'task' => 'disable', + 'entity' => 'Job', + 'target' => 'crm-popup', + 'icon' => 'fa-toggle-off', + 'text' => E::ts('Disable'), + 'style' => 'default', + 'condition' => ['is_active', '=', TRUE], + ], [ 'entity' => 'Job', 'action' => 'delete', -- 2.25.1