From e51972b0583ad512989031bb873d414399bf1556 Mon Sep 17 00:00:00 2001 From: Aidan Saunders Date: Thu, 2 Nov 2023 22:26:20 +0000 Subject: [PATCH] Standardise on edit, disable, delete etc in menu --- .../managed/SavedSearch_ACL_Roles.mgd.php | 3 ++- ...nister_Assigned_Financial_Accounts.mgd.php | 3 ++- ...vedSearch_Administer_Contact_Types.mgd.php | 5 +++- ...vedSearch_Administer_Custom_Fields.mgd.php | 25 +++++++------------ ...vedSearch_Administer_Custom_Groups.mgd.php | 4 +-- ...arch_Administer_Financial_Accounts.mgd.php | 3 ++- ...dSearch_Administer_Financial_Types.mgd.php | 10 +++++++- ...edSearch_Administer_Location_Types.mgd.php | 3 ++- ...avedSearch_Administer_Manage_Group.mgd.php | 4 +-- ...arch_Administer_Payment_Processors.mgd.php | 3 ++- ...vedSearch_Administer_ProfileFields.mgd.php | 3 ++- ...arch_Administer_Relationship_Types.mgd.php | 3 ++- ...rch_Administer_Scheduled_Reminders.mgd.php | 3 ++- .../managed/SavedSearch_Manage_ACLs.mgd.php | 4 +-- ...edSearch_Manage_Contribution_Pages.mgd.php | 3 ++- .../SavedSearch_Manage_Scheduled_Jobs.mgd.php | 4 +-- 16 files changed, 48 insertions(+), 35 deletions(-) diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_ACL_Roles.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_ACL_Roles.mgd.php index ad6974906c..de475f50ba 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_ACL_Roles.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_ACL_Roles.mgd.php @@ -162,7 +162,8 @@ return [ 'condition' => [], ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Assigned_Financial_Accounts.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Assigned_Financial_Accounts.mgd.php index 9dcf53a32d..a1d89053de 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Assigned_Financial_Accounts.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Assigned_Financial_Accounts.mgd.php @@ -152,7 +152,8 @@ return [ 'target' => 'crm-popup', ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Contact_Types.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Contact_Types.mgd.php index fbb6a96687..30ab389b28 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Contact_Types.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Contact_Types.mgd.php @@ -113,7 +113,10 @@ return [ 'editable' => TRUE, ], [ + 'text' => '', + 'style' => 'default', 'size' => 'btn-xs', + 'icon' => 'fa-bars', 'links' => [ [ 'entity' => 'ContactType', @@ -141,7 +144,7 @@ return [ ], ], ], - 'type' => 'buttons', + 'type' => 'menu', 'alignment' => 'text-right', ], ], 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 1f530c36d6..67766d00cb 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 @@ -113,7 +113,10 @@ return [ 'editable' => TRUE, ], [ + 'text' => '', + 'style' => 'default', 'size' => 'btn-xs', + 'icon' => 'fa-bars', 'links' => [ [ 'entity' => 'CustomField', @@ -121,28 +124,18 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-pencil', - 'text' => E::ts('Edit Field'), + 'text' => E::ts('Edit'), 'style' => 'default', 'path' => '', 'condition' => [], ], - ], - 'type' => 'buttons', - 'alignment' => 'text-right', - ], - [ - 'text' => '', - 'style' => 'default', - 'size' => 'btn-xs', - 'icon' => 'fa-bars', - 'links' => [ [ 'entity' => 'CustomField', 'action' => 'preview', 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-eye', - 'text' => E::ts('Preview Field'), + 'text' => E::ts('Preview'), 'style' => 'default', 'path' => '', 'condition' => [], @@ -166,7 +159,7 @@ return [ 'entity' => 'CustomField', 'target' => 'crm-popup', 'icon' => 'fa-toggle-on', - 'text' => E::ts('Enable Field'), + 'text' => E::ts('Enable'), 'style' => 'default', 'condition' => ['is_active', '=', FALSE], ], @@ -175,7 +168,7 @@ return [ 'entity' => 'CustomField', 'target' => 'crm-popup', 'icon' => 'fa-toggle-off', - 'text' => E::ts('Disable Field'), + 'text' => E::ts('Disable'), 'style' => 'default', 'condition' => ['is_active', '=', TRUE], ], @@ -185,7 +178,7 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-random', - 'text' => E::ts('Move Field'), + 'text' => E::ts('Move'), 'style' => 'default', 'path' => '', 'condition' => [], @@ -196,7 +189,7 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-trash', - 'text' => E::ts('Delete Field'), + 'text' => E::ts('Delete'), 'style' => 'danger', 'path' => '', 'condition' => [], 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 be88c1815c..0263e16db2 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 @@ -167,7 +167,7 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-eye', - 'text' => E::ts('Preview Group'), + 'text' => E::ts('Preview'), 'style' => 'default', 'path' => '', 'condition' => [], @@ -196,7 +196,7 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-trash', - 'text' => E::ts('Delete Group'), + 'text' => E::ts('Delete'), 'style' => 'danger', 'path' => '', 'condition' => [], 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 0ff2330177..db86a63bec 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 @@ -184,7 +184,8 @@ return [ 'condition' => ['is_reserved', '=', FALSE], ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], 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 a02b01c14d..55ddd2f991 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 @@ -151,6 +151,13 @@ return [ 'join' => '', 'target' => '', ], + ], + 'type' => 'buttons', + 'alignment' => 'text-right', + ], + [ + 'size' => 'btn-xs', + 'links' => [ [ 'icon' => 'fa-pencil', 'text' => E::ts('Edit'), @@ -190,7 +197,8 @@ return [ 'target' => 'crm-popup', ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], 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 823763b874..f0f1ebc698 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 @@ -168,7 +168,8 @@ return [ ], ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], 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 ea4e5f38d7..26f62cbecb 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 @@ -225,7 +225,7 @@ return [ 'target' => 'crm-popup', ], ], - 'type' => 'links', + 'type' => 'buttons', 'alignment' => 'text-right', ], [ @@ -258,7 +258,7 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-trash', - 'text' => E::ts('Remove Group'), + 'text' => E::ts('Delete'), 'style' => 'danger', 'path' => '', 'condition' => [], 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 77287800b1..3252597f0b 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 @@ -208,7 +208,8 @@ return [ 'condition' => [], ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], 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 2877ceba1a..4247f52154 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_ProfileFields.mgd.php @@ -185,7 +185,8 @@ return [ 'condition' => [], ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], 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 20e514f5a7..39fda6f513 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 @@ -159,7 +159,8 @@ return [ 'condition' => [], ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], diff --git a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Scheduled_Reminders.mgd.php b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Scheduled_Reminders.mgd.php index 29ef9dbf0e..ae1d1bcefb 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Scheduled_Reminders.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Administer_Scheduled_Reminders.mgd.php @@ -177,7 +177,8 @@ return [ 'condition' => [], ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], 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 6c7e1f22fa..9bfa13c8cd 100644 --- a/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php +++ b/ext/civicrm_admin_ui/managed/SavedSearch_Manage_ACLs.mgd.php @@ -137,7 +137,7 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-pencil', - 'text' => E::ts('Edit ACL'), + 'text' => E::ts('Edit'), 'style' => 'default', 'path' => '', 'condition' => [], @@ -166,7 +166,7 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-trash', - 'text' => E::ts('Delete ACL'), + 'text' => E::ts('Delete'), 'style' => 'danger', 'path' => '', 'condition' => [], 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 2e6b8c7296..3217d8f58b 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 @@ -240,7 +240,8 @@ return [ 'condition' => [], ], ], - 'type' => 'buttons', + 'type' => 'menu', + 'icon' => 'fa-bars', 'alignment' => 'text-right', ], ], 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 07ce4295a5..fa4c89d963 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 @@ -188,7 +188,7 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-pencil', - 'text' => E::ts('Edit Job'), + 'text' => E::ts('Edit'), 'style' => 'default', 'path' => '', 'condition' => [], @@ -228,7 +228,7 @@ return [ 'join' => '', 'target' => 'crm-popup', 'icon' => 'fa-trash', - 'text' => E::ts('Delete Job'), + 'text' => E::ts('Delete'), 'style' => 'danger', 'path' => '', 'condition' => [], -- 2.25.1