diff --git a/src/Controller/AuditLogsController.php b/src/Controller/AuditLogsController.php index 8f80802..e72327d 100644 --- a/src/Controller/AuditLogsController.php +++ b/src/Controller/AuditLogsController.php @@ -31,6 +31,11 @@ class AuditLogsController extends AppController if (!empty($responsePayload)) { return $responsePayload; } - $this->set('metaGroup', 'Administration'); } + + public function filtering() + { + $this->CRUD->filtering(); + } + } diff --git a/templates/AuditLogs/index.php b/templates/AuditLogs/index.php index c4657cb..d20fa67 100644 --- a/templates/AuditLogs/index.php +++ b/templates/AuditLogs/index.php @@ -6,10 +6,14 @@ echo $this->element('genericElements/IndexTable/index_table', [ 'children' => [ [ 'type' => 'search', - 'button' => __('Filter'), + 'button' => __('Search'), 'placeholder' => __('Enter value to search'), 'data' => '', - 'searchKey' => 'value' + 'searchKey' => 'value', + 'allowFilering' => true + ], + [ + 'type' => 'table_action', ] ] ],