Source
(new CVisibilityBox('visible[inventory_mode]', 'inventory_mode_div', _('Original')))->setLabel(_('Inventory mode')),
<?php declare(strict_types = 0);
/*
** Zabbix
** Copyright (C) 2001-2022 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
/**
* @var CView $this
*/
// create form
$form = (new CForm())
->setId('massupdate-form')
->setAttribute('aria-labeledby', ZBX_STYLE_PAGE_TITLE)
->addVar('action', 'popup.massupdate.host')
->addVar('hostids', $data['hostids'], 'ids')
->addVar('tls_accept', HOST_ENCRYPTION_NONE)
->addVar('update', '1')
->addVar('location_url', $data['location_url'])
->disablePasswordAutofill();
$host_tab = new CFormList('hostFormList');
$link_templates = (new CTable())
->addRow(
(new CRadioButtonList('mass_action_tpls', ZBX_ACTION_ADD))
->addValue(_('Link'), ZBX_ACTION_ADD)
->addValue(_('Replace'), ZBX_ACTION_REPLACE)
->addValue(_('Unlink'), ZBX_ACTION_REMOVE)
->setModern(true)
)
->addRow([
(new CMultiSelect([
'name' => 'templates[]',
'object_name' => 'templates',
'data' => [],
'popup' => [
'parameters' => [
'srctbl' => 'templates',
'srcfld1' => 'hostid',
'srcfld2' => 'host',
'dstfrm' => $form->getName(),
'dstfld1' => 'templates_'
]
]
]))->setWidth(ZBX_TEXTAREA_STANDARD_WIDTH)
])
->addRow([