Merge branch 'ent-10955-fallos-de-estilos-en-discovery-netscan' into 'develop'

Ent 10955 fallos de estilos en discovery netscan

See merge request artica/pandorafms!5739
This commit is contained in:
Rafael Ameijeiras 2023-04-20 08:32:37 +00:00
commit f2be417a5e
2 changed files with 29 additions and 26 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,12 +825,11 @@ class HostDevices extends Wizard
],
],
];
$form['rows'][0]['columns'][1] = [
'width' => '40%',
'padding-right' => '12%',
'padding-left' => '5%',
'style' => 'min-width: 350px',
'padding-right' => '8%',
'padding-left' => '0%',
'style' => 'min-width: 230px',
'inputs' => [
'0' => [
'label' => '<b>'.__('Task name').':</b>',
@ -926,11 +925,15 @@ class HostDevices extends Wizard
],
];
// Group select (custom for this section).
$group_select = '<div class="label_select"><label>'.__('Group').':</label></div>';
$group_select .= $this->printInput(
[
$form['rows'][0]['columns'][2] = [
'width' => '40%',
'padding-right' => '5%',
'padding-left' => '0',
'style' => 'min-width: 144px;',
'inputs' => [
'0' => [
'label' => '<b>'.__('Group').':</b>',
'arguments' => [
'name' => 'id_group',
'returnAllGroup' => false,
'privilege' => $this->access,
@ -940,13 +943,9 @@ class HostDevices extends Wizard
'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],
],
],
],
];
$form['rows'][1]['style'] = 'style de row';
@ -1586,6 +1585,10 @@ class HostDevices extends Wizard
$(function() {
SNMPExtraShow($("#snmp_version").val());
});
$("#id_network_profile").select2({
placeholder: "'.__('Please select...').'"
});
';
if (enterprise_installed()) {

View File

@ -560,7 +560,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;