2020-06-25 01:44:26 +02:00
|
|
|
<?php
|
|
|
|
echo $this->element('genericElements/IndexTable/index_table', [
|
|
|
|
'data' => [
|
|
|
|
'data' => $sharing_group_orgs,
|
|
|
|
'skip_pagination' => 1,
|
|
|
|
'top_bar' => [
|
|
|
|
'children' => [
|
|
|
|
[
|
|
|
|
'type' => 'simple',
|
|
|
|
'children' => [
|
|
|
|
'data' => [
|
|
|
|
'type' => 'simple',
|
|
|
|
'text' => __('Add member'),
|
2021-01-18 17:26:35 +01:00
|
|
|
'popover_url' => '/sharingGroups/addOrg/' . h($sharing_group_id),
|
|
|
|
'reload_url' => '/sharingGroups/listOrgs/' . h($sharing_group_id)
|
2020-06-25 01:44:26 +02:00
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'type' => 'search',
|
|
|
|
'button' => __('Filter'),
|
|
|
|
'placeholder' => __('Enter value to search'),
|
|
|
|
'data' => '',
|
|
|
|
'searchKey' => 'value'
|
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'fields' => [
|
|
|
|
[
|
|
|
|
'name' => '#',
|
|
|
|
'sort' => 'id',
|
|
|
|
'class' => 'short',
|
|
|
|
'data_path' => 'id',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => __('Name'),
|
|
|
|
'class' => 'short',
|
|
|
|
'data_path' => 'name',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => __('UUID'),
|
|
|
|
'sort' => 'uuid',
|
|
|
|
'class' => 'short',
|
|
|
|
'data_path' => 'uuid',
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'pull' => 'right',
|
|
|
|
'actions' => [
|
|
|
|
[
|
|
|
|
'url' => '/organisations/view',
|
|
|
|
'url_params_data_paths' => ['id'],
|
|
|
|
'icon' => 'eye'
|
|
|
|
],
|
|
|
|
[
|
2021-01-11 16:28:07 +01:00
|
|
|
'open_modal' => '/sharingGroups/removeOrg/' . h($sharing_group_id) . '/[onclick_params_data_path]',
|
|
|
|
'modal_params_data_path' => 'id',
|
2021-01-18 17:26:35 +01:00
|
|
|
'reload_url' => '/sharingGroups/listOrgs/' . h($sharing_group_id),
|
2020-06-25 01:44:26 +02:00
|
|
|
'icon' => 'trash'
|
2021-01-11 16:28:07 +01:00
|
|
|
],
|
2020-06-25 01:44:26 +02:00
|
|
|
]
|
|
|
|
]
|
|
|
|
]);
|
|
|
|
echo '</div>';
|
|
|
|
?>
|