[Legacy] Move total cases statist to top widget

This commit is contained in:
Clemente Raposo 2025-01-21 12:40:24 +00:00 committed by Jack Anderson
parent 988f7eae45
commit c08443d635

View file

@ -88,6 +88,12 @@ array(
'endLabelKey' => 'LBL_STAT_DAYS', 'endLabelKey' => 'LBL_STAT_DAYS',
'hideValueIfEmpty' => true 'hideValueIfEmpty' => true
], ],
[
'labelKey' => 'LBL_TOTAL_CASES_FOR_THIS_ACCOUNT',
'type' => 'cases-per-account',
'endLabelKey' => 'LBL_SINCE',
'hideValueIfEmpty' => true
],
], ],
] ]
], ],
@ -247,53 +253,6 @@ array(
'Cases' => ['view', 'list'] 'Cases' => ['view', 'list']
] ]
], ],
[
'type' => 'statistics',
'labelKey' => 'LBL_NUMBER_OF_CASES_PER_ACCOUNT',
'options' => [
'sidebarStatistic' => [
'rows' => [
[
'align' => 'start',
'cols' => [
[
'labelKey' => 'LBL_TOTAL_CASES_FOR_THIS_ACCOUNT',
'size' => 'medium',
],
]
],
[
'align' => 'start',
'cols' => [
[
'statistic' => 'cases-per-account',
'size' => 'xx-large',
'bold' => true,
'color' => 'green'
]
]
],
[
'align' => 'start',
'cols' => [
[
'labelKey' => 'LBL_SINCE',
'size' => 'regular',
],
[
'statistic' => 'get-account-date-entered',
'size' => 'regular',
],
]
],
]
]
],
'acls' => [
'Cases' => ['view', 'list'],
'Accounts' => ['view', 'list']
]
],
], ],
'panels' => 'panels' =>
array( array(