';
+
+ // Left box.
+ $output .= '
';
+
+ // Filtering.
+ if (isset($sections['filters']) === true
+ && $sections['filters'] === 1
+ ) {
+ // Filtering.
+ if (isset($sections['group-filter']) === true
+ && $sections['group-filter'] === 1
+ ) {
+ $output .= '
';
+
+ $output .= '
';
+
+ $reload_content = "reloadContent('".$rid."'";
+ $reload_content .= ", '".ui_get_full_url('ajax.php')."'";
+ $reload_content .= ", '".base64_encode(
+ json_encode($group_filter)
+ )."'";
+ $reload_content .= ", 'left'";
+ $reload_content .= ", '".__('None')."')";
+
+ $output .= html_print_input(
+ [
+ 'label' => __('Filter group'),
+ 'name' => 'id-group-available-select-'.$rid,
+ 'returnAllGroup' => true,
+ 'privilege' => 'AR',
+ 'type' => 'select_groups',
+ 'return' => true,
+ 'script' => $reload_content,
+ ]
+ );
+
+ $output .= html_print_input(
+ [
+ 'label' => __('Group recursion'),
+ 'name' => 'id-group-recursion-available-select-'.$rid,
+ 'type' => 'checkbox',
+ 'script' => $reload_content,
+ 'return' => true,
+ ]
+ );
+
+ $output .= '
';
+
+ $output .= '
';
+ }
+
+ if (isset($sections['item-available-filter']) === true
+ && $sections['item-available-filter'] === 1
+ ) {
+ $output .= '
';
+
+ $output .= html_print_input(
+ [
+ 'style' => 'display:none;',
+ 'name' => 'tmp-available-select-'.$rid,
+ 'type' => 'select',
+ 'nothing' => false,
+ 'return' => true,
+ ]
+ );
+
+ $f = "filterAvailableItems(this.value,'".$rid."','".__('None')."')";
+ $output .= html_print_input(
+ [
+ 'label' => __($texts['filter-item']),
+ 'name' => 'filter-item-available-'.$rid,
+ 'onKeyUp' => $f,
+ 'input_class' => 'filter w100p',
+ 'size' => 20,
+ 'type' => 'text',
+ 'return' => true,
+ ]
+ );
+
+ $output .= '
';
+ }
+ }
+
+ $output .= '
'.$texts['title-left'].'';
+
+ // Selector boxes.
+ $output .= html_print_input(
+ [
+ 'type' => 'select',
+ 'fields' => $available,
+ 'name' => 'available-select-'.$rid.'[]',
+ 'selected' => '',
+ 'script' => '',
+ 'nothing' => '',
+ 'nothing_value' => 0,
+ 'return' => true,
+ 'multiple' => true,
+ 'sort' => true,
+ 'class' => 'select-multiple',
+ 'disabled' => false,
+ 'style' => false,
+ 'option_style' => false,
+ 'size' => false,
+ 'modal' => false,
+ 'message' => '',
+ 'select_all' => false,
+ 'simple_multiple_options' => false,
+ ]
+ );
+
+ $output .= '
';
+
+ // Middle buttons actions.
+ $add = "addItems('".$rid."','".__('None')."'); return false";
+ $del = "removeItems('".$rid."','".__('None')."'); return false";
+
+ $output .= '
';
+
+ $output .= html_print_input(
+ [
+ 'type' => 'image',
+ 'src' => 'images/darrowright.png',
+ 'return' => true,
+ 'options' => [
+ 'title' => $texts['title-add'],
+ 'onclick' => $add,
+ ],
+ ]
+ );
+
+ $output .= html_print_input(
+ [
+ 'type' => 'image',
+ 'src' => 'images/darrowleft.png',
+ 'return' => true,
+ 'options' => [
+ 'title' => $texts['title-del'],
+ 'onclick' => $del,
+ ],
+ ]
+ );
+
+ $output .= '
';
+
+ // Left box.
+ $output .= '
';
+
+ // Filtering.
+ if (isset($sections['filters']) === true
+ && $sections['filters'] === 1
+ ) {
+ if (isset($sections['group-filter']) === true
+ && $sections['group-filter'] === 1
+ ) {
+ $output .= '
';
+
+ $output .= '
';
+
+ $reload_content = "reloadContent('".$rid."'";
+ $reload_content .= ", '".ui_get_full_url('ajax.php')."'";
+ $reload_content .= ", '".base64_encode(
+ json_encode($group_filter)
+ )."'";
+ $reload_content .= ", 'right'";
+ $reload_content .= ", '".__('None')."')";
+
+ $output .= html_print_input(
+ [
+ 'label' => __('Filter group'),
+ 'name' => 'id-group-selected-select-'.$rid,
+ 'returnAllGroup' => true,
+ 'privilege' => 'AR',
+ 'type' => 'select_groups',
+ 'return' => true,
+ 'script' => $reload_content,
+ ]
+ );
+
+ $output .= html_print_input(
+ [
+ 'label' => __('Group recursion'),
+ 'name' => 'id-group-recursion-selected-select-'.$rid,
+ 'type' => 'checkbox',
+ 'script' => $reload_content,
+ 'return' => true,
+ ]
+ );
+
+ $output .= '
';
+
+ $output .= '
';
+ }
+
+ // Filtering.
+ if (isset($sections['item-selected-filter']) === true
+ && $sections['item-selected-filter'] === 1
+ ) {
+ $output .= '
';
+
+ $output .= html_print_input(
+ [
+ 'style' => 'display:none;',
+ 'name' => 'tmp-selected-select-'.$rid,
+ 'type' => 'select',
+ 'nothing' => false,
+ 'return' => true,
+ ]
+ );
+
+ $f = "filterSelectedItems(this.value,'".$rid."','".__('None')."')";
+ $output .= html_print_input(
+ [
+ 'label' => __($texts['filter-item']),
+ 'name' => 'filter-item-selected-'.$rid,
+ 'onKeyUp' => $f,
+ 'input_class' => 'filter w100p',
+ 'size' => 20,
+ 'type' => 'text',
+ 'return' => true,
+ ]
+ );
+
+ $output .= '
';
+ }
+ }
+
+ $output .= '
'.$texts['title-right'].'';
+
+ $output .= html_print_input(
+ [
+ 'type' => 'select',
+ 'fields' => $selected,
+ 'name' => 'selected-select-'.$rid.'[]',
+ 'selected' => '',
+ 'script' => '',
+ 'nothing' => '',
+ 'nothing_value' => 0,
+ 'return' => true,
+ 'multiple' => true,
+ 'sort' => true,
+ 'class' => 'select-multiple',
+ 'disabled' => false,
+ 'style' => false,
+ 'option_style' => false,
+ 'size' => false,
+ 'modal' => false,
+ 'message' => '',
+ 'select_all' => true,
+ 'simple_multiple_options' => false,
+ ]
+ );
+
+ $output .= '
';
+
+ // Close main.
+ $output .= '
';
+
+ if ($return === false) {
+ echo $output;
+ }
+
+ return $output;
+}
+
+
/**
* Prints an array of fields in a popup menu of a form based on a SQL query.
* The first and second columns of the query will be used.
@@ -1555,7 +1888,8 @@ function html_print_input_text(
$autocomplete='',
$autofocus=false,
$onKeyDown='',
- $formTo=''
+ $formTo='',
+ $onKeyUp=''
) {
if ($maxlength == 0) {
$maxlength = 255;
@@ -1584,6 +1918,10 @@ function html_print_input_text(
$attr['onkeydown'] = $onKeyDown;
}
+ if ($onKeyUp != '') {
+ $attr['onkeyup'] = $onKeyUp;
+ }
+
if ($autocomplete !== '') {
$attr['autocomplete'] = $autocomplete;
}
@@ -3471,9 +3809,10 @@ function html_print_input($data, $wrapper='div', $input_only=false)
((isset($data['class']) === true) ? $data['class'] : ''),
((isset($data['onChange']) === true) ? $data['onChange'] : ''),
((isset($data['autocomplete']) === true) ? $data['autocomplete'] : ''),
- false,
+ ((isset($data['autofocus']) === true) ? $data['autofocus'] : false),
((isset($data['onKeyDown']) === true) ? $data['onKeyDown'] : ''),
- ((isset($data['form']) === true) ? $data['form'] : '')
+ ((isset($data['form']) === true) ? $data['form'] : ''),
+ ((isset($data['onKeyUp']) === true) ? $data['onKeyUp'] : '')
);
break;
@@ -3895,6 +4234,19 @@ function html_print_input($data, $wrapper='div', $input_only=false)
);
break;
+ case 'select_multiple_filtered':
+ $output .= html_print_select_multiple_filtered(
+ $data['available'],
+ $data['selected'],
+ ((isset($data['name']) === true) ? $data['name'] : null),
+ ((isset($data['class']) === true) ? $data['class'] : ''),
+ ((isset($data['return']) === true) ? $data['return'] : true),
+ ((isset($data['group_filter']) === true) ? $data['group_filter'] : []),
+ ((isset($data['texts']) === true) ? $data['texts'] : []),
+ ((isset($data['sections']) === true) ? $data['sections'] : [])
+ );
+ break;
+
default:
// Ignore.
break;
diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php
index c5525347e4..0fa2a67d76 100755
--- a/pandora_console/include/functions_ui.php
+++ b/pandora_console/include/functions_ui.php
@@ -3157,6 +3157,13 @@ function ui_print_datatable(array $parameters)
throw new Exception('[ui_print_datatable]: You must define columns for datatable');
}
+ if (isset($parameters['column_names'])
+ && is_array($parameters['column_names'])
+ && count($parameters['columns']) != count($parameters['column_names'])
+ ) {
+ throw new Exception('[ui_print_datatable]: Columns and columns names must have same length');
+ }
+
if (!isset($parameters['ajax_url'])) {
throw new Exception('[ui_print_datatable]: Parameter ajax_url is required');
}
diff --git a/pandora_console/include/lib/View.php b/pandora_console/include/lib/View.php
index facdb8f262..7953d61537 100644
--- a/pandora_console/include/lib/View.php
+++ b/pandora_console/include/lib/View.php
@@ -1,8 +1,39 @@
$vendorDir . '/mpdf/mpdf/src/Utils/NumericString.php',
'Mpdf\\Utils\\PdfDate' => $vendorDir . '/mpdf/mpdf/src/Utils/PdfDate.php',
'Mpdf\\Utils\\UtfString' => $vendorDir . '/mpdf/mpdf/src/Utils/UtfString.php',
+ 'PandoraFMS\\Agent' => $baseDir . '/include/lib/Agent.php',
+ 'PandoraFMS\\Dashboard\\AgentModuleWidget' => $baseDir . '/include/lib/Dashboard/Widgets/agent_module.php',
+ 'PandoraFMS\\Dashboard\\AlertsFiredWidget' => $baseDir . '/include/lib/Dashboard/Widgets/alerts_fired.php',
'PandoraFMS\\Dashboard\\Cell' => $baseDir . '/include/lib/Dashboard/Cell.php',
+ 'PandoraFMS\\Dashboard\\ClockWidget' => $baseDir . '/include/lib/Dashboard/Widgets/clock.php',
+ 'PandoraFMS\\Dashboard\\CustomGraphWidget' => $baseDir . '/include/lib/Dashboard/Widgets/custom_graph.php',
+ 'PandoraFMS\\Dashboard\\EventsListWidget' => $baseDir . '/include/lib/Dashboard/Widgets/events_list.php',
+ 'PandoraFMS\\Dashboard\\GraphModuleHistogramWidget' => $baseDir . '/include/lib/Dashboard/Widgets/graph_module_histogram.php',
+ 'PandoraFMS\\Dashboard\\GroupsStatusWidget' => $baseDir . '/include/lib/Dashboard/Widgets/groups_status.php',
'PandoraFMS\\Dashboard\\Manager' => $baseDir . '/include/lib/Dashboard/Manager.php',
+ 'PandoraFMS\\Dashboard\\MapsMadeByUser' => $baseDir . '/include/lib/Dashboard/Widgets/maps_made_by_user.php',
+ 'PandoraFMS\\Dashboard\\MapsStatusWidget' => $baseDir . '/include/lib/Dashboard/Widgets/maps_status.php',
+ 'PandoraFMS\\Dashboard\\ModuleIconWidget' => $baseDir . '/include/lib/Dashboard/Widgets/module_icon.php',
+ 'PandoraFMS\\Dashboard\\ModuleStatusWidget' => $baseDir . '/include/lib/Dashboard/Widgets/module_status.php',
+ 'PandoraFMS\\Dashboard\\ModuleTableValueWidget' => $baseDir . '/include/lib/Dashboard/Widgets/module_table_value.php',
+ 'PandoraFMS\\Dashboard\\ModuleValueWidget' => $baseDir . '/include/lib/Dashboard/Widgets/module_value.php',
+ 'PandoraFMS\\Dashboard\\MonitorHealthWidget' => $baseDir . '/include/lib/Dashboard/Widgets/monitor_health.php',
+ 'PandoraFMS\\Dashboard\\NetworkMapWidget' => $baseDir . '/include/lib/Dashboard/Widgets/network_map.php',
+ 'PandoraFMS\\Dashboard\\PostWidget' => $baseDir . '/include/lib/Dashboard/Widgets/post.php',
+ 'PandoraFMS\\Dashboard\\ReportsWidget' => $baseDir . '/include/lib/Dashboard/Widgets/reports.php',
+ 'PandoraFMS\\Dashboard\\SLAPercentWidget' => $baseDir . '/include/lib/Dashboard/Widgets/sla_percent.php',
+ 'PandoraFMS\\Dashboard\\ServiceMapWidget' => $baseDir . '/include/lib/Dashboard/Widgets/service_map.php',
+ 'PandoraFMS\\Dashboard\\SingleGraphWidget' => $baseDir . '/include/lib/Dashboard/Widgets/single_graph.php',
+ 'PandoraFMS\\Dashboard\\SystemGroupStatusWidget' => $baseDir . '/include/lib/Dashboard/Widgets/system_group_status.php',
+ 'PandoraFMS\\Dashboard\\TacticalWidget' => $baseDir . '/include/lib/Dashboard/Widgets/tactical.php',
+ 'PandoraFMS\\Dashboard\\TopNEventByGroupWidget' => $baseDir . '/include/lib/Dashboard/Widgets/top_n_events_by_group.php',
+ 'PandoraFMS\\Dashboard\\TopNEventByModuleWidget' => $baseDir . '/include/lib/Dashboard/Widgets/top_n_events_by_module.php',
+ 'PandoraFMS\\Dashboard\\TopNWidget' => $baseDir . '/include/lib/Dashboard/Widgets/top_n.php',
+ 'PandoraFMS\\Dashboard\\TreeViewWidget' => $baseDir . '/include/lib/Dashboard/Widgets/tree_view.php',
+ 'PandoraFMS\\Dashboard\\UrlWidget' => $baseDir . '/include/lib/Dashboard/Widgets/url.php',
+ 'PandoraFMS\\Dashboard\\WelcomeWidget' => $baseDir . '/include/lib/Dashboard/Widgets/example.php',
+ 'PandoraFMS\\Dashboard\\Widget' => $baseDir . '/include/lib/Dashboard/Widget.php',
+ 'PandoraFMS\\Dashboard\\WuxStatsWidget' => $baseDir . '/include/lib/Dashboard/Widgets/wux_transaction_stats.php',
+ 'PandoraFMS\\Dashboard\\WuxWidget' => $baseDir . '/include/lib/Dashboard/Widgets/wux_transaction.php',
+ 'PandoraFMS\\Entity' => $baseDir . '/include/lib/Entity.php',
+ 'PandoraFMS\\Group' => $baseDir . '/include/lib/Group.php',
'PandoraFMS\\User' => $baseDir . '/include/lib/User.php',
+ 'PandoraFMS\\View' => $baseDir . '/include/lib/View.php',
'PandoraFMS\\WebSockets\\WSManager' => $baseDir . '/include/lib/WSManager.php',
'PandoraFMS\\Websockets\\WebSocketServer' => $baseDir . '/include/lib/WebSocketServer.php',
'PandoraFMS\\Websockets\\WebSocketUser' => $baseDir . '/include/lib/WebSocketUser.php',
diff --git a/pandora_console/vendor/composer/autoload_real.php b/pandora_console/vendor/composer/autoload_real.php
index d93d1d70ef..8576380cc1 100644
--- a/pandora_console/vendor/composer/autoload_real.php
+++ b/pandora_console/vendor/composer/autoload_real.php
@@ -13,6 +13,9 @@ class ComposerAutoloaderInitfdecadadce22e6dde51e9535fe4ad7aa
}
}
+ /**
+ * @return \Composer\Autoload\ClassLoader
+ */
public static function getLoader()
{
if (null !== self::$loader) {
diff --git a/pandora_console/vendor/composer/autoload_static.php b/pandora_console/vendor/composer/autoload_static.php
index b59d14b744..1dc3c32bc7 100644
--- a/pandora_console/vendor/composer/autoload_static.php
+++ b/pandora_console/vendor/composer/autoload_static.php
@@ -390,9 +390,44 @@ class ComposerStaticInitfdecadadce22e6dde51e9535fe4ad7aa
'Mpdf\\Utils\\NumericString' => __DIR__ . '/..' . '/mpdf/mpdf/src/Utils/NumericString.php',
'Mpdf\\Utils\\PdfDate' => __DIR__ . '/..' . '/mpdf/mpdf/src/Utils/PdfDate.php',
'Mpdf\\Utils\\UtfString' => __DIR__ . '/..' . '/mpdf/mpdf/src/Utils/UtfString.php',
+ 'PandoraFMS\\Agent' => __DIR__ . '/../..' . '/include/lib/Agent.php',
+ 'PandoraFMS\\Dashboard\\AgentModuleWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/agent_module.php',
+ 'PandoraFMS\\Dashboard\\AlertsFiredWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/alerts_fired.php',
'PandoraFMS\\Dashboard\\Cell' => __DIR__ . '/../..' . '/include/lib/Dashboard/Cell.php',
+ 'PandoraFMS\\Dashboard\\ClockWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/clock.php',
+ 'PandoraFMS\\Dashboard\\CustomGraphWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/custom_graph.php',
+ 'PandoraFMS\\Dashboard\\EventsListWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/events_list.php',
+ 'PandoraFMS\\Dashboard\\GraphModuleHistogramWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/graph_module_histogram.php',
+ 'PandoraFMS\\Dashboard\\GroupsStatusWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/groups_status.php',
'PandoraFMS\\Dashboard\\Manager' => __DIR__ . '/../..' . '/include/lib/Dashboard/Manager.php',
+ 'PandoraFMS\\Dashboard\\MapsMadeByUser' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/maps_made_by_user.php',
+ 'PandoraFMS\\Dashboard\\MapsStatusWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/maps_status.php',
+ 'PandoraFMS\\Dashboard\\ModuleIconWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/module_icon.php',
+ 'PandoraFMS\\Dashboard\\ModuleStatusWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/module_status.php',
+ 'PandoraFMS\\Dashboard\\ModuleTableValueWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/module_table_value.php',
+ 'PandoraFMS\\Dashboard\\ModuleValueWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/module_value.php',
+ 'PandoraFMS\\Dashboard\\MonitorHealthWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/monitor_health.php',
+ 'PandoraFMS\\Dashboard\\NetworkMapWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/network_map.php',
+ 'PandoraFMS\\Dashboard\\PostWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/post.php',
+ 'PandoraFMS\\Dashboard\\ReportsWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/reports.php',
+ 'PandoraFMS\\Dashboard\\SLAPercentWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/sla_percent.php',
+ 'PandoraFMS\\Dashboard\\ServiceMapWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/service_map.php',
+ 'PandoraFMS\\Dashboard\\SingleGraphWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/single_graph.php',
+ 'PandoraFMS\\Dashboard\\SystemGroupStatusWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/system_group_status.php',
+ 'PandoraFMS\\Dashboard\\TacticalWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/tactical.php',
+ 'PandoraFMS\\Dashboard\\TopNEventByGroupWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/top_n_events_by_group.php',
+ 'PandoraFMS\\Dashboard\\TopNEventByModuleWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/top_n_events_by_module.php',
+ 'PandoraFMS\\Dashboard\\TopNWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/top_n.php',
+ 'PandoraFMS\\Dashboard\\TreeViewWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/tree_view.php',
+ 'PandoraFMS\\Dashboard\\UrlWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/url.php',
+ 'PandoraFMS\\Dashboard\\WelcomeWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/example.php',
+ 'PandoraFMS\\Dashboard\\Widget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widget.php',
+ 'PandoraFMS\\Dashboard\\WuxStatsWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/wux_transaction_stats.php',
+ 'PandoraFMS\\Dashboard\\WuxWidget' => __DIR__ . '/../..' . '/include/lib/Dashboard/Widgets/wux_transaction.php',
+ 'PandoraFMS\\Entity' => __DIR__ . '/../..' . '/include/lib/Entity.php',
+ 'PandoraFMS\\Group' => __DIR__ . '/../..' . '/include/lib/Group.php',
'PandoraFMS\\User' => __DIR__ . '/../..' . '/include/lib/User.php',
+ 'PandoraFMS\\View' => __DIR__ . '/../..' . '/include/lib/View.php',
'PandoraFMS\\WebSockets\\WSManager' => __DIR__ . '/../..' . '/include/lib/WSManager.php',
'PandoraFMS\\Websockets\\WebSocketServer' => __DIR__ . '/../..' . '/include/lib/WebSocketServer.php',
'PandoraFMS\\Websockets\\WebSocketUser' => __DIR__ . '/../..' . '/include/lib/WebSocketUser.php',
diff --git a/pandora_console/views/dashboard/configurationWidgets.php b/pandora_console/views/dashboard/configurationWidgets.php
index aa65b06776..2e88ce35a6 100644
--- a/pandora_console/views/dashboard/configurationWidgets.php
+++ b/pandora_console/views/dashboard/configurationWidgets.php
@@ -47,8 +47,7 @@ $form = [
'extra' => 'novalidate',
];
-$html = new HTML();
-$html->printForm(
+HTML::printForm(
[
'form' => $form,
'inputs' => $htmlInputs,
diff --git a/pandora_console/views/dashboard/formDashboard.php b/pandora_console/views/dashboard/formDashboard.php
index 57a63455e7..b80f3ab557 100644
--- a/pandora_console/views/dashboard/formDashboard.php
+++ b/pandora_console/views/dashboard/formDashboard.php
@@ -120,8 +120,7 @@ $inputs = [
],
];
-$html = new HTML();
-$html->printForm(
+HTML::printForm(
[
'form' => $form,
'inputs' => $inputs,
diff --git a/pandora_console/views/dashboard/formSlides.php b/pandora_console/views/dashboard/formSlides.php
index c01a3b8d31..3421a05afc 100644
--- a/pandora_console/views/dashboard/formSlides.php
+++ b/pandora_console/views/dashboard/formSlides.php
@@ -84,8 +84,7 @@ $inputs[] = [
],
];
-$html = new HTML();
-$html->printForm(
+HTML::printForm(
[
'form' => $form,
'inputs' => $inputs,
diff --git a/pandora_console/views/dashboard/listWidgets.php b/pandora_console/views/dashboard/listWidgets.php
index 24d96acffb..f460ab824e 100644
--- a/pandora_console/views/dashboard/listWidgets.php
+++ b/pandora_console/views/dashboard/listWidgets.php
@@ -52,8 +52,7 @@ $inputs = [
],
];
-$html = new HTML();
-$html->printForm(
+HTML::printForm(
[
'form' => $form,
'inputs' => $inputs,