renderTagTable($field_values['optag'], $options['templated'], ['field_name' => 'optag', 'add_post_js' => false])
'header' => $data['title']
$options = $data['options'];
$field_values = $data['field_values'];
$operations_popup_form = (new CForm())
->setId('lldoperation_form')
->addVar('no', $options['no'])
->addItem((new CVar('templated', $options['templated']))->removeId())
->addVar('action', 'popup.lldoperation');
$operations_popup_form->addItem((new CSubmitButton())->addClass(ZBX_STYLE_FORM_SUBMIT_HIDDEN));
$operations_popup_form_list = (new CFormList())
(new CLabel(_('Object'), 'label-operationobject')),
(new CSelect('operationobject'))
->setValue($options['operationobject'])
->setFocusableElementId('label-operationobject')
->addOptions(CSelect::createOptionsFromArray([
OPERATION_OBJECT_ITEM_PROTOTYPE => _('Item prototype'),
OPERATION_OBJECT_TRIGGER_PROTOTYPE => _('Trigger prototype'),
OPERATION_OBJECT_GRAPH_PROTOTYPE => _('Graph prototype'),
OPERATION_OBJECT_HOST_PROTOTYPE => _('Host prototype')
->setId('operationobject')
->setReadonly($options['templated'])
->addRow((new CLabel(_('Condition'), 'label-operator')), [
(new CSelect('operator'))
->setValue($options['operator'])
->setFocusableElementId('label-operator')
->addOptions(CSelect::createOptionsFromArray([
CONDITION_OPERATOR_EQUAL => _('equals'),
CONDITION_OPERATOR_NOT_EQUAL => _('does not equal'),
CONDITION_OPERATOR_LIKE => _('contains'),
CONDITION_OPERATOR_NOT_LIKE => _('does not contain'),
CONDITION_OPERATOR_REGEXP => _('matches'),
CONDITION_OPERATOR_NOT_REGEXP => _('does not match')