2021-11-17 14:44:54 +01:00
|
|
|
<?php
|
|
|
|
echo $this->element('genericElements/IndexTable/index_table', [
|
|
|
|
'data' => [
|
|
|
|
'data' => $data,
|
|
|
|
'top_bar' => [
|
|
|
|
'children' => [
|
|
|
|
[
|
|
|
|
'type' => 'search',
|
2022-01-20 13:55:27 +01:00
|
|
|
'button' => __('Search'),
|
2021-11-17 14:44:54 +01:00
|
|
|
'placeholder' => __('Enter value to search'),
|
|
|
|
'data' => '',
|
2022-01-20 13:55:27 +01:00
|
|
|
'searchKey' => 'value',
|
|
|
|
'allowFilering' => true
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'type' => 'table_action',
|
2021-11-17 14:44:54 +01:00
|
|
|
]
|
|
|
|
]
|
|
|
|
],
|
|
|
|
'fields' => [
|
|
|
|
[
|
|
|
|
'name' => '#',
|
|
|
|
'sort' => 'id',
|
|
|
|
'data_path' => 'id',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => __('IP'),
|
|
|
|
'sort' => 'request_ip',
|
|
|
|
'data_path' => 'request_ip',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => __('Username'),
|
|
|
|
'sort' => 'user.username',
|
|
|
|
'data_path' => 'user.username',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => __('Title'),
|
|
|
|
'data_path' => 'title',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => __('Model'),
|
|
|
|
'sort' => 'model',
|
|
|
|
'data_path' => 'model',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => __('Model ID'),
|
|
|
|
'sort' => 'model',
|
|
|
|
'data_path' => 'model_id',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => __('Action'),
|
2021-11-17 16:04:02 +01:00
|
|
|
'sort' => 'request_action',
|
|
|
|
'data_path' => 'request_action',
|
2021-11-17 14:44:54 +01:00
|
|
|
],
|
|
|
|
[
|
2021-11-25 00:57:31 +01:00
|
|
|
'name' => __('Changed'),
|
|
|
|
'sort' => 'changed',
|
|
|
|
'data_path' => 'changed',
|
2022-01-20 14:24:03 +01:00
|
|
|
'element' => 'json',
|
|
|
|
'class' => 'text-break'
|
2021-11-17 14:44:54 +01:00
|
|
|
],
|
|
|
|
],
|
|
|
|
'title' => __('Logs'),
|
|
|
|
'description' => null,
|
|
|
|
'pull' => 'right',
|
|
|
|
'actions' => []
|
|
|
|
]
|
|
|
|
]);
|
|
|
|
echo '</div>';
|
|
|
|
?>
|