return [
'type' => 'search',
- 'title' => E::ts('Label Format form'),
- 'description' => E::ts('Label Format form'),
+ 'title' => E::ts('Label Formats'),
+ 'description' => E::ts('Label Formats'),
'icon' => 'fa-list-alt',
'server_route' => 'civicrm/searchkit_ui/admin/labelFormats',
- 'modified_date' => '2023-12-05 04:11:31',
+ 'permission' => [
+ 'administer CiviCRM',
+ ],
+ 'modified_date' => '2023-12-06 18:52:54',
];
'OptionGroup_OptionValue_option_group_id_01.label',
'title',
'description',
- 'is_active',
'is_reserved',
'OptionGroup_OptionValue_option_group_id_01.grouping',
+ 'OptionGroup_OptionValue_option_group_id_01.is_default',
],
'orderBy' => [],
'where' => [
'description' => '',
'sort' => [],
'limit' => 50,
- 'pager' => [],
+ 'pager' => [
+ 'show_count' => FALSE,
+ 'expose_limit' => FALSE,
+ 'hide_single' => TRUE,
+ ],
'placeholder' => 5,
'columns' => [
[
],
[
'type' => 'field',
- 'key' => 'is_active',
+ 'key' => 'OptionGroup_OptionValue_option_group_id_01.is_default',
'dataType' => 'Boolean',
- 'label' => E::ts('Enabled'),
+ 'label' => E::ts('Default'),
'sortable' => TRUE,
+ 'rewrite' => '{ }',
+ 'icons' => [
+ [
+ 'icon' => 'fa-check',
+ 'side' => 'left',
+ 'if' => [
+ 'OptionGroup_OptionValue_option_group_id_01.is_default',
+ '=',
+ TRUE,
+ ],
+ ],
+ ],
],
[
'type' => 'field',
'sortable' => TRUE,
],
[
+ 'text' => '',
+ 'style' => 'default',
'size' => 'btn-xs',
+ 'icon' => 'fa-bars',
'links' => [
[
'entity' => '',
'action' => '',
'join' => '',
'target' => 'crm-popup',
- 'icon' => '',
+ 'icon' => 'fa-pencil',
'text' => E::ts('Edit'),
'style' => 'default',
- 'path' => 'civicrm/admin/labelFormats?action=update&id=[OptionGroup_OptionValue_option_group_id_01.id]&group=[name]&reset=1',
+ 'path' => 'civicrm/admin/labelFormats/edit?action=update&id=[OptionGroup_OptionValue_option_group_id_01.id]&group=[name]&reset=1',
'task' => '',
'condition' => [],
],
- ],
- 'type' => 'buttons',
- 'alignment' => 'text-right',
- ],
- [
- 'size' => 'btn-xs',
- 'links' => [
[
- 'entity' => '',
- 'action' => '',
- 'join' => '',
- 'target' => '',
- 'icon' => '',
+ 'path' => 'civicrm/admin/labelFormats/edit?action=copy&id=[OptionGroup_OptionValue_option_group_id_01.id]&group=[name]&reset=1',
+ 'icon' => 'fa-clone',
'text' => E::ts('Copy'),
'style' => 'default',
- 'path' => 'civicrm/admin/labelFormats?action=copy&id=[OptionGroup_OptionValue_option_group_id_01.id]&group=[name]&reset=1',
- 'task' => '',
'condition' => [],
- ],
- ],
- 'type' => 'buttons',
- 'alignment' => 'text-right',
- ],
- [
- 'size' => 'btn-xs',
- 'links' => [
- [
- 'entity' => 'OptionValue',
- 'action' => 'delete',
- 'join' => 'OptionGroup_OptionValue_option_group_id_01',
- 'target' => 'crm-popup',
- 'icon' => 'fa-trash',
- 'text' => E::ts('Delete'),
- 'style' => 'danger',
- 'path' => '',
'task' => '',
- 'condition' => [
- 'OptionGroup_OptionValue_option_group_id_01.grouping',
- '=',
- 'Custom',
- ],
+ 'entity' => '',
+ 'action' => '',
+ 'join' => '',
+ 'target' => 'crm-popup',
],
],
- 'type' => 'buttons',
+ 'type' => 'menu',
'alignment' => 'text-right',
],
],
'style' => 'default',
'target' => 'crm-popup',
'join' => '',
- 'path' => 'civicrm/admin/labelFormats?action=add&reset=1',
+ 'path' => 'civicrm/admin/labelFormats/edit?action=add&reset=1',
'task' => '',
'condition' => [],
],
],
+ 'headerCount' => FALSE,
],
],
'match' => [