From dcecdd55906caee678513d0fee2e61eac7a0a1ab Mon Sep 17 00:00:00 2001 From: Jorge Rincon Date: Tue, 18 Apr 2023 17:13:39 +0200 Subject: [PATCH] Fixed the first part, group control --- .../godmode/wizards/HostDevices.class.php | 73 +++++++++++++------ 1 file changed, 52 insertions(+), 21 deletions(-) diff --git a/pandora_console/godmode/wizards/HostDevices.class.php b/pandora_console/godmode/wizards/HostDevices.class.php index a2836b0d72..1ec12e67aa 100755 --- a/pandora_console/godmode/wizards/HostDevices.class.php +++ b/pandora_console/godmode/wizards/HostDevices.class.php @@ -825,12 +825,12 @@ class HostDevices extends Wizard ], ], ]; - + $form['rows'][0]['style'] = 'style de row'; $form['rows'][0]['columns'][1] = [ 'width' => '40%', - 'padding-right' => '12%', - 'padding-left' => '5%', - 'style' => 'min-width: 350px', + 'padding-right' => '10%', + 'padding-left' => '0%', + 'style' => 'min-width: 230px', 'inputs' => [ '0' => [ 'label' => ''.__('Task name').':', @@ -927,26 +927,57 @@ class HostDevices extends Wizard ]; // Group select (custom for this section). - $group_select = '
'; + // $group_select = ''.__('Group').':'; + /* + $group_select = $this->printInput( - $group_select .= $this->printInput( - [ - 'name' => 'id_group', - 'returnAllGroup' => false, - 'privilege' => $this->access, - 'type' => 'select_groups', - 'selected' => $this->task['id_group'], - 'return' => true, - 'class' => 'discovery_list_input', - 'simple_multiple_options' => true, - 'required' => true, - ] - ); + );*/ + + /* + $form['rows'][0]['columns'][2] = [ + 'width' => '40%', + 'padding-right' => '12%', + 'padding-left' => '5%', + 'style' => 'min-width: 250px', + 'inputs' => [ + '0' => [ + 'label' => ''.__('Group').':', + 'arguments' => [ + 'name' => 'id_group', + 'returnAllGroup' => false, + 'privilege' => $this->access, + 'type' => 'select_groups', + 'selected' => $this->task['id_group'], + 'return' => true, + 'class' => 'discovery_list_input', + 'simple_multiple_options' => true, + 'required' => true, + ], + ], + ], + ];*/ $form['rows'][0]['columns'][2] = [ - 'width' => '30%', - 'style' => 'min-width: 250px', - 'inputs' => ['0' => $group_select], + 'width' => '40%', + 'padding-right' => '12%', + 'padding-left' => '0', + 'style' => 'min-width: 210px', + 'inputs' => [ + '0' => [ + 'label' => ''.__('Group').':', + 'arguments' => [ + 'name' => 'id_group', + 'returnAllGroup' => false, + 'privilege' => $this->access, + 'type' => 'select_groups', + 'selected' => $this->task['id_group'], + 'return' => true, + 'class' => 'discovery_textarea_input', + 'simple_multiple_options' => true, + 'required' => true, + ], + ], + ], ]; $form['rows'][1]['style'] = 'style de row';