Source
xxxxxxxxxx
<?= (new CTextBox('preprocessing[#{rowNum}][params][0]', ''))->setAttribute('placeholder', '#{placeholder}') ?>
<?php
/*
** 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
*/
?>
<script type="text/x-jquery-tmpl" id="preprocessing-steps-tmpl">
<?php
$preproc_types_select = (new CSelect('preprocessing[#{rowNum}][type]'))
->setId('preprocessing_#{rowNum}_type')
->setValue(ZBX_PREPROC_REGSUB)
->setWidthAuto();
foreach (get_preprocessing_types(null, true, $data['preprocessing_types']) as $group) {
$opt_group = new CSelectOptionGroup($group['label']);
foreach ($group['types'] as $type => $label) {
$opt_group->addOption(new CSelectOption($type, $label));
}
$preproc_types_select->addOptionGroup($opt_group);
}
echo (new CListItem([
(new CDiv([
(new CDiv(new CVar('preprocessing[#{rowNum}][sortorder]', '#{sortorder}')))->addClass(ZBX_STYLE_DRAG_ICON),
(new CDiv($preproc_types_select))
->addClass('list-numbered-item')
->addClass('step-name'),
(new CDiv())->addClass('step-parameters'),
(new CDiv(new CCheckBox('preprocessing[#{rowNum}][on_fail]')))->addClass('step-on-fail'),
(new CDiv([
(new CButton('preprocessing[#{rowNum}][test]', _('Test')))
->addClass(ZBX_STYLE_BTN_LINK)
->addClass('preprocessing-step-test')
->removeId(),
(new CButton('preprocessing[#{rowNum}][remove]', _('Remove')))
->addClass(ZBX_STYLE_BTN_LINK)
->addClass('element-table-remove')
->removeId()
]))->addClass('step-action')
]))->addClass('preprocessing-step'),
(new CDiv([