2020-06-25 01:44:26 +02:00
< ? php
echo $this -> element ( 'genericElements/IndexTable/index_table' , [
'data' => [
'data' => $data ,
'top_bar' => [
'children' => [
[
'type' => 'simple' ,
'children' => [
'data' => [
'type' => 'simple' ,
'text' => __ ( 'Add sharing group' ),
2021-12-01 14:26:20 +01:00
'popover_url' => '/SharingGroups/add' ,
'requirement' => $this -> ACL -> checkAccess ( 'SharingGroups' , 'add' )
2020-06-25 01:44:26 +02:00
]
]
],
[
'type' => 'search' ,
2021-11-10 15:31:09 +01:00
'button' => __ ( 'Search' ),
2020-06-25 01:44:26 +02:00
'placeholder' => __ ( 'Enter value to search' ),
'data' => '' ,
'searchKey' => 'value'
]
]
],
'fields' => [
[
'name' => '#' ,
'sort' => 'id' ,
'class' => 'short' ,
'data_path' => 'id' ,
],
[
'name' => __ ( 'Name' ),
'class' => 'short' ,
'data_path' => 'name' ,
],
2021-11-24 01:26:55 +01:00
[
'name' => __ ( 'Owner' ),
'class' => 'short' ,
'data_path' => 'organisation.name'
],
2020-06-25 01:44:26 +02:00
[
'name' => __ ( 'UUID' ),
'sort' => 'uuid' ,
'class' => 'short' ,
'data_path' => 'uuid' ,
],
[
'name' => __ ( 'Members' ),
2021-12-04 23:58:42 +01:00
'data_path' => 'sharing_group_orgs' ,
2020-06-25 01:44:26 +02:00
'element' => 'count_summary' ,
2021-12-05 00:02:33 +01:00
'url' => '/sharingGroups/view/{{url_data}}' ,
2020-06-25 01:44:26 +02:00
'url_data_path' => 'id'
]
],
'title' => __ ( 'Sharing Groups Index' ),
'description' => __ ( 'Sharing groups are distribution lists usable by tools that can exchange information with a list of trusted partners. Create recurring or ad hoc sharing groups and share them with the members of the sharing group.' ),
2023-09-27 12:05:48 +02:00
'includeAllPagination' => true ,
2020-06-25 01:44:26 +02:00
'pull' => 'right' ,
'actions' => [
[
'url' => '/sharingGroups/view' ,
'url_params_data_paths' => [ 'id' ],
'icon' => 'eye'
],
[
2021-01-11 16:28:07 +01:00
'open_modal' => '/sharingGroups/edit/[onclick_params_data_path]' ,
'modal_params_data_path' => 'id' ,
2020-06-25 01:44:26 +02:00
'icon' => 'edit'
],
[
2021-01-11 16:28:07 +01:00
'open_modal' => '/sharingGroups/delete/[onclick_params_data_path]' ,
'modal_params_data_path' => '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>' ;
?>