#10955 Fixed Netscan styling bugs. Group, module templates, Description

This commit is contained in:
Jorge Rincon 2023-04-19 15:51:51 +02:00
parent dcecdd5590
commit e1e72ca882
2 changed files with 11 additions and 39 deletions

View File

@ -792,7 +792,7 @@ class HostDevices extends Wizard
$form['rows'][0]['columns'][0] = [
'width' => '30%',
'style' => 'padding: 9px;min-width: 250px;',
'style' => 'padding: 9px;min-width: 188px;',
'inputs' => [
'1' => '<div class="height_50p mrgn_btn_35px">'.html_print_image('images/wizard/netscan_green.png', true, ['title' => __('Close')], false).'</div>',
'2' => [
@ -825,10 +825,9 @@ class HostDevices extends Wizard
],
],
];
$form['rows'][0]['style'] = 'style de row';
$form['rows'][0]['columns'][1] = [
'width' => '40%',
'padding-right' => '10%',
'padding-right' => '8%',
'padding-left' => '0%',
'style' => 'min-width: 230px',
'inputs' => [
@ -926,19 +925,11 @@ class HostDevices extends Wizard
],
];
// Group select (custom for this section).
// $group_select = '<b>'.__('Group').':</b>';
/*
$group_select = $this->printInput(
);*/
/*
$form['rows'][0]['columns'][2] = [
$form['rows'][0]['columns'][2] = [
'width' => '40%',
'padding-right' => '12%',
'padding-left' => '5%',
'style' => 'min-width: 250px',
'padding-right' => '5%',
'padding-left' => '0',
'style' => 'min-width: 144px;',
'inputs' => [
'0' => [
'label' => '<b>'.__('Group').':</b>',
@ -955,29 +946,6 @@ class HostDevices extends Wizard
],
],
],
];*/
$form['rows'][0]['columns'][2] = [
'width' => '40%',
'padding-right' => '12%',
'padding-left' => '0',
'style' => 'min-width: 210px',
'inputs' => [
'0' => [
'label' => '<b>'.__('Group').':</b>',
'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';
@ -1617,6 +1585,10 @@ class HostDevices extends Wizard
$(function() {
SNMPExtraShow($("#snmp_version").val());
});
$("#id_network_profile").select2({
placeholder: "'.__('Please select...').'"
});
';
if (enterprise_installed()) {

View File

@ -564,7 +564,7 @@ class ManageNetScanScripts extends Wizard
$data = [];
$data[0] = __('Description');
$data[1] = '<textarea name="form_description" cols="50" rows="4">';
$data[1] = '<textarea name="form_description" cols="69" rows="5">';
$data[1] .= $form_description;
$data[1] .= '</textarea>';
$table->data['recon_description'] = $data;