chg: [auditlog] Allow filtering and searching the table

pull/93/head
Sami Mokaddem 2022-01-20 13:55:27 +01:00
parent 420bbb9207
commit 38a9aa9869
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 12 additions and 3 deletions

View File

@ -31,6 +31,11 @@ class AuditLogsController extends AppController
if (!empty($responsePayload)) { if (!empty($responsePayload)) {
return $responsePayload; return $responsePayload;
} }
$this->set('metaGroup', 'Administration');
} }
public function filtering()
{
$this->CRUD->filtering();
}
} }

View File

@ -6,10 +6,14 @@ echo $this->element('genericElements/IndexTable/index_table', [
'children' => [ 'children' => [
[ [
'type' => 'search', 'type' => 'search',
'button' => __('Filter'), 'button' => __('Search'),
'placeholder' => __('Enter value to search'), 'placeholder' => __('Enter value to search'),
'data' => '', 'data' => '',
'searchKey' => 'value' 'searchKey' => 'value',
'allowFilering' => true
],
[
'type' => 'table_action',
] ]
] ]
], ],