10457-System audit log
This commit is contained in:
parent
12212fff02
commit
32cf508633
|
@ -162,6 +162,7 @@ class AuditLog extends HTML
|
||||||
'id' => 'load-filter',
|
'id' => 'load-filter',
|
||||||
'class' => 'float-left margin-right-2 margin-left-2 sub config',
|
'class' => 'float-left margin-right-2 margin-left-2 sub config',
|
||||||
'text' => __('Load filter'),
|
'text' => __('Load filter'),
|
||||||
|
'icon' => 'load',
|
||||||
'onclick' => '',
|
'onclick' => '',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -169,6 +170,7 @@ class AuditLog extends HTML
|
||||||
'id' => 'save-filter',
|
'id' => 'save-filter',
|
||||||
'class' => 'float-left margin-right-2 sub wand',
|
'class' => 'float-left margin-right-2 sub wand',
|
||||||
'text' => __('Save filter'),
|
'text' => __('Save filter'),
|
||||||
|
'icon' => 'save',
|
||||||
'onclick' => '',
|
'onclick' => '',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -181,7 +183,7 @@ class AuditLog extends HTML
|
||||||
[
|
[
|
||||||
'id' => $this->tableId,
|
'id' => $this->tableId,
|
||||||
'class' => 'info_table',
|
'class' => 'info_table',
|
||||||
'style' => 'width: 100%',
|
'style' => 'width: 99%',
|
||||||
'columns' => $columns,
|
'columns' => $columns,
|
||||||
'column_names' => $column_names,
|
'column_names' => $column_names,
|
||||||
'ajax_url' => $this->ajaxController,
|
'ajax_url' => $this->ajaxController,
|
||||||
|
@ -199,21 +201,21 @@ class AuditLog extends HTML
|
||||||
[
|
[
|
||||||
'label' => __('Free search').ui_print_help_tip(__('Search filter by User, Action, Date, Source IP or Comments fields content'), true),
|
'label' => __('Free search').ui_print_help_tip(__('Search filter by User, Action, Date, Source IP or Comments fields content'), true),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'class' => 'w200px',
|
'class' => 'w100p',
|
||||||
'id' => 'filter_text',
|
'id' => 'filter_text',
|
||||||
'name' => 'filter_text',
|
'name' => 'filter_text',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'label' => __('Max. hours old'),
|
'label' => __('Max. hours old'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'class' => 'w100px',
|
'class' => 'w100p',
|
||||||
'id' => 'filter_period',
|
'id' => 'filter_period',
|
||||||
'name' => 'filter_period',
|
'name' => 'filter_period',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'label' => __('IP'),
|
'label' => __('IP'),
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
'class' => 'w100px',
|
'class' => 'w100p',
|
||||||
'id' => 'filter_ip',
|
'id' => 'filter_ip',
|
||||||
'name' => 'filter_ip',
|
'name' => 'filter_ip',
|
||||||
],
|
],
|
||||||
|
@ -241,6 +243,7 @@ class AuditLog extends HTML
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'filter_main_class' => 'box-flat white_table_graph fixed_filter_bar',
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
@ -254,6 +257,8 @@ class AuditLog extends HTML
|
||||||
|
|
||||||
// Load own javascript file.
|
// Load own javascript file.
|
||||||
echo $this->loadJS();
|
echo $this->loadJS();
|
||||||
|
|
||||||
|
html_print_action_buttons([], ['type' => 'form_action']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3573,8 +3573,7 @@ function ui_print_datatable(array $parameters)
|
||||||
$filter .= html_print_input(($input + ['return' => true]), 'li');
|
$filter .= html_print_input(($input + ['return' => true]), 'li');
|
||||||
}
|
}
|
||||||
|
|
||||||
$filter .= '<li>';
|
$filter .= '</ul>';
|
||||||
|
|
||||||
// Extra buttons.
|
// Extra buttons.
|
||||||
$extra_buttons = '';
|
$extra_buttons = '';
|
||||||
if (isset($parameters['form']['extra_buttons']) === true
|
if (isset($parameters['form']['extra_buttons']) === true
|
||||||
|
@ -3616,9 +3615,7 @@ function ui_print_datatable(array $parameters)
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
$filter .= '</li>';
|
$filter .= '<div id="both"></div></form>';
|
||||||
|
|
||||||
$filter .= '</ul><div id="both"></div></form>';
|
|
||||||
if (isset($parameters['form']['no_toggle']) === false) {
|
if (isset($parameters['form']['no_toggle']) === false) {
|
||||||
$filter = ui_toggle(
|
$filter = ui_toggle(
|
||||||
$filter,
|
$filter,
|
||||||
|
|
Loading…
Reference in New Issue