mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
[Legacy] Add case updates widget configuration
This commit is contained in:
parent
114f04dd97
commit
d38a6850b0
1 changed files with 112 additions and 13 deletions
|
@ -139,21 +139,120 @@ array(
|
|||
]
|
||||
]
|
||||
],
|
||||
['type' => 'statistics',
|
||||
[
|
||||
'type' => 'record-thread',
|
||||
'labelKey' => 'LBL_CASE_UPDATES',
|
||||
'options' => [
|
||||
'sidebarStatistic' => [
|
||||
'rows' => [
|
||||
[
|
||||
'align' => 'start',
|
||||
'cols' => [
|
||||
[
|
||||
'icon' => 'CaseUpdate',
|
||||
'iconClass' => 'img-fluid',
|
||||
]
|
||||
]
|
||||
],
|
||||
]
|
||||
'recordThread' => [
|
||||
'module' => 'case-updates',
|
||||
'class' => 'case-updates',
|
||||
'filters' => [
|
||||
'parentFilters' => [
|
||||
'id' => 'case_id'
|
||||
],
|
||||
'orderBy' => 'date_entered',
|
||||
'sortOrder' => 'DESC'
|
||||
],
|
||||
'item' => [
|
||||
'itemClass' => 'case-updates-item pt-2 pb-2',
|
||||
'collapsible' => true,
|
||||
'layout' => [
|
||||
'header' => [
|
||||
'rows' => [
|
||||
[
|
||||
'justify' => 'start',
|
||||
'align' => 'end',
|
||||
'cols' => [
|
||||
[
|
||||
'field' => 'author',
|
||||
'labelDisplay' => 'none',
|
||||
'hideIfEmpty' => true,
|
||||
'class' => 'font-weight-light'
|
||||
],
|
||||
[
|
||||
'field' => 'date_entered',
|
||||
'labelDisplay' => 'none',
|
||||
'hideIfEmpty' => true,
|
||||
'class' => 'small ml-auto font-weight-light'
|
||||
],
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'body' =>[
|
||||
'rows' => [
|
||||
[
|
||||
'align' => 'end',
|
||||
'justify' => 'end',
|
||||
'cols' => [
|
||||
[
|
||||
'field' => 'internal',
|
||||
'labelDisplay' => 'inline',
|
||||
'labelClass' => 'm-0',
|
||||
'display' => 'none',
|
||||
'hideIfEmpty' => true,
|
||||
'class' => 'small ml-auto font-weight-light'
|
||||
],
|
||||
]
|
||||
],
|
||||
[
|
||||
'justify' => 'start',
|
||||
'class' => 'flex-grow-1',
|
||||
'cols' => [
|
||||
[
|
||||
'field' => [
|
||||
'name' => 'description',
|
||||
'type' => 'html',
|
||||
],
|
||||
'labelDisplay' => 'none',
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
'create' => [
|
||||
'presetFields' => [
|
||||
'parentValues' => [
|
||||
'id' => 'case_id'
|
||||
],
|
||||
],
|
||||
'layout' => [
|
||||
'header' => ['rows' => []],
|
||||
'body' =>[
|
||||
'rows' => [
|
||||
[
|
||||
'justify' => 'start',
|
||||
'class' => 'flex-grow-1',
|
||||
'cols' => [
|
||||
[
|
||||
'field' => [
|
||||
'name' => 'description',
|
||||
'metadata' => [
|
||||
'rows' => 3
|
||||
]
|
||||
],
|
||||
'labelDisplay' => 'top',
|
||||
'class' => 'flex-grow-1',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'align' => 'end',
|
||||
'justify' => 'start',
|
||||
'class' => 'flex-grow-1',
|
||||
'cols' => [
|
||||
[
|
||||
'field' => 'internal',
|
||||
'labelDisplay' => 'inline',
|
||||
],
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue