Source
* @param {number} data_index Optional index, if data with given index exists, then in place update will happen.
<?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="lldoverride-row-templated">
<?= (new CRow([
'',
(new CSpan('1:'))->setAttribute('data-row-num', ''),
(new CCol((new CLink('#{name}', 'javascript:lldoverrides.overrides.open(#{no});')))),
'#{stop_verbose}',
(new CCol((new CButton(null, _('Remove')))
->addClass(ZBX_STYLE_BTN_LINK)
->addClass('element-table-remove')
->setEnabled(false)
))->addClass(ZBX_STYLE_NOWRAP)
]))->toString()
?>
</script>
<script type="text/x-jquery-tmpl" id="lldoverride-row">
<?= (new CRow([
(new CCol((new CDiv())->addClass(ZBX_STYLE_DRAG_ICON)))
->addClass(ZBX_STYLE_TD_DRAG_ICON)
->setWidth('15'),
(new CCol((new CSpan('1:'))->setAttribute('data-row-num', '')))
->setWidth('15'),
(new CCol((new CLink('#{name}', 'javascript:lldoverrides.overrides.open(#{no});'))))
->setWidth('350'),
(new CCol('#{stop_verbose}'))
->setWidth('100'),
(new CCol((new CButton(null, _('Remove')))
->addClass(ZBX_STYLE_BTN_LINK)
->addClass('element-table-remove')
))
->addClass(ZBX_STYLE_NOWRAP)
->setWidth('50')
]))
->addClass('sortable')
->toString()
?>
</script>
<script type="text/x-jquery-tmpl" id="override-filters-row">
<?=