cerebrate/templates/LocalTools/brood_tools.php

56 lines
1.9 KiB
PHP
Raw Normal View History

2021-06-01 07:45:58 +02:00
<?php
echo $this->element('genericElements/IndexTable/index_table', [
'data' => [
'data' => $data,
'top_bar' => [
'children' => [
[
'type' => 'search',
'button' => __('Search'),
2021-06-01 07:45:58 +02:00
'placeholder' => __('Enter value to search'),
'data' => '',
'searchKey' => 'value'
]
]
],
'fields' => [
[
'name' => __('Id'),
'data_path' => 'id',
],
[
'name' => __('Name'),
'data_path' => 'name',
],
[
'name' => 'Connector',
'data_path' => 'connector'
],
[
'name' => __('Description'),
'data_path' => 'description',
2021-06-11 14:27:22 +02:00
],
[
'name' => __('Connected Local Tools'),
'data_path' => 'local_tool',
'element' => 'local_tools_status'
2021-06-01 07:45:58 +02:00
]
],
'title' => __('Local tools made available by the remote Cerebrate'),
'description' => __('Cerebrate can connect to local tools via individual connectors and administrators can choose to expose a subset of their tools to other members of their Cerebrate in order for their peers to be able to issue interconnection requests. '),
'pull' => 'right',
'skip_pagination' => 1,
'actions' => [
[
2021-06-11 10:44:24 +02:00
'open_modal' => sprintf('/localTools/connectionRequest/%s/[onclick_params_data_path]', h($id)),
'reload_url' => $this->Url->build(['action' => 'broodTools', $id]),
2021-06-11 10:44:24 +02:00
'modal_params_data_path' => 'id',
2021-06-01 07:45:58 +02:00
'title' => 'Issue a connection request',
'icon' => 'plug'
]
]
]
]);
echo '</div>';
?>