diff options
Diffstat (limited to 'frontends/php/include/views/configuration.item.massupdate.php')
-rw-r--r-- | frontends/php/include/views/configuration.item.massupdate.php | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/frontends/php/include/views/configuration.item.massupdate.php b/frontends/php/include/views/configuration.item.massupdate.php index 4c500a37ce1..aaab93147a1 100644 --- a/frontends/php/include/views/configuration.item.massupdate.php +++ b/frontends/php/include/views/configuration.item.massupdate.php @@ -478,16 +478,22 @@ if ($this->data['displayApplications']) { } } - $replaceApp = new CMultiSelect(array( + $replaceApp = new CDiv(new CMultiSelect(array( 'name' => 'applications[]', 'objectName' => 'applications', 'objectOptions' => array('hostid' => $this->data['hostid']), - 'data' => $appToReplace - )); + 'data' => $appToReplace, + 'popup' => array( + 'parameters' => 'srctbl=applications&dstfrm='.$itemForm->getName().'&dstfld1=applications_'. + '&srcfld1=applicationid&multiselect=1&noempty=1&hostid='.$this->data['hostid'], + 'width' => 450, + 'height' => 450 + ) + )), null, 'replaceApp'); $itemFormList->addRow( array(_('Replace applications'), SPACE, new CVisibilityBox('visible[applications]', - isset($this->data['visible']['applications']), 'applications_', _('Original') + isset($this->data['visible']['applications']), 'replaceApp', _('Original') )), $replaceApp ); @@ -522,17 +528,23 @@ if ($this->data['displayApplications']) { } } - $newApp = new CMultiSelect(array( + $newApp = new CDiv(new CMultiSelect(array( 'name' => 'new_applications[]', 'objectName' => 'applications', 'objectOptions' => array('hostid' => $this->data['hostid']), 'data' => $appToAdd, - 'addNew' => true - )); + 'addNew' => true, + 'popup' => array( + 'parameters' => 'srctbl=applications&dstfrm='.$itemForm->getName().'&dstfld1=new_applications_'. + '&srcfld1=applicationid&multiselect=1&noempty=1&hostid='.$this->data['hostid'], + 'width' => 450, + 'height' => 450 + ) + )), null, 'newApp'); $itemFormList->addRow( array(_('Add new or existing applications'), SPACE, new CVisibilityBox('visible[new_applications]', - isset($this->data['visible']['new_applications']), 'new_applications_', _('Original') + isset($this->data['visible']['new_applications']), 'newApp', _('Original') )), $newApp ); |