mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 08:17:18 +08:00
[Legacy] Configure header widget to warn of test data display on EmailMarketing Records
This commit is contained in:
parent
545d7e7c9c
commit
05ad5167b6
3 changed files with 50 additions and 1 deletions
|
@ -4261,3 +4261,5 @@ $app_strings['LBL_EMAILS_PER_RUN_DYNAMIC_LABEL'] = '{{ fields.campaign_emails_pe
|
|||
$app_strings['LBL_TRACKERS_ENABLED_DYNAMIC_LABEL'] = '{{ fields.trackers_enabled.value }}';
|
||||
$app_strings['LBL_UNSUBSCRIBE'] = 'Unsubscribe';
|
||||
$app_strings['LBL_INACTIVE'] = 'Inactive';
|
||||
$app_strings['LBL_DISPLAYING_TEST_EMAIL_MARKETING_DATA'] = 'Charts and Subpanels currently displaying data generated from Test Emails.';
|
||||
$app_strings['LBL_DASH_SYMBOL'] = '-';
|
||||
|
|
|
@ -144,5 +144,6 @@ $mod_strings = array(
|
|||
'LBL_TRACKERS_ENABLED' => 'Trackers Enabled',
|
||||
'LBL_TRACKERS_ENABLED_FOOTNOTE' => 'When enabled, the email will contain trackers to monitor views and clicks',
|
||||
'LBL_TRACKERS_DISABLED_FOOTNOTE' => 'When disabled, the email will NOT have trackers to monitor views and clicks.',
|
||||
'LBL_TRACKERS_DISABLED_GLOBALLY_FOOTNOTE' => 'Trackers disabled globally. Email views and clicks will not be tracked.'
|
||||
'LBL_TRACKERS_DISABLED_GLOBALLY_FOOTNOTE' => 'Trackers disabled globally. Email views and clicks will not be tracked.',
|
||||
'LBL_HAS_TEST_DATA' => 'Has test data',
|
||||
);
|
||||
|
|
|
@ -49,6 +49,51 @@ $viewdefs ['EmailMarketing'] = [
|
|||
],
|
||||
]
|
||||
],
|
||||
'headerWidgets' => [
|
||||
'test-data-banner' => [
|
||||
'type' => 'banner-grid',
|
||||
'modes' => ['detail'],
|
||||
'options' => [
|
||||
'mainRowClass' => 'd-flex h-100 row justify-content-center align-items-center w-100 mb-0 mr-0 ml-0 alert alert-warning',
|
||||
'bannerGrid' => [
|
||||
'rows' => [
|
||||
[
|
||||
'justify' => 'center',
|
||||
'cols' => [
|
||||
[
|
||||
'bold' => true,
|
||||
'class' => 'd-flex align-items-center',
|
||||
'icon' => 'exclamation-triangle',
|
||||
'labelKey' => 'LBL_WARNING',
|
||||
'labelClass' => 'd-inline-block ml-1',
|
||||
],
|
||||
[
|
||||
'class' => 'd-flex align-items-center',
|
||||
'labelKey' => 'LBL_DASH_SYMBOL',
|
||||
'labelClass' => 'd-inline-block ml-1',
|
||||
],
|
||||
[
|
||||
'class' => 'd-flex align-items-center',
|
||||
'labelKey' => 'LBL_DISPLAYING_TEST_EMAIL_MARKETING_DATA',
|
||||
'labelClass' => 'd-inline-block ml-1',
|
||||
],
|
||||
]
|
||||
],
|
||||
]
|
||||
]
|
||||
],
|
||||
'acls' => [
|
||||
],
|
||||
'activeOnFields' => [
|
||||
'has_test_data' => [
|
||||
[
|
||||
'operator' => 'is-equal',
|
||||
'values' => [true, 'true', 1, '1']
|
||||
],
|
||||
],
|
||||
]
|
||||
],
|
||||
],
|
||||
'sidebarWidgets' => [
|
||||
'scheduler-widget' => [
|
||||
'type' => 'statistics',
|
||||
|
@ -706,6 +751,7 @@ $viewdefs ['EmailMarketing'] = [
|
|||
'params' => [
|
||||
'queryParams' => [
|
||||
'status' => 'draft',
|
||||
'has_test_data' => '0'
|
||||
]
|
||||
],
|
||||
'acl' => ['delete'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue