->addTab('trigger_tab', $data['prototype'] ? _('Trigger prototype') :_('Trigger'), $trigger_form_list)
<?php declare(strict_types = 0);
->addItem((new CVar(CSRF_TOKEN_NAME, CCsrfTokenHelper::get('trigger')))->removeId())
->setId('massupdate-form')
->addVar('action', $data['prototype'] ? 'trigger.prototype.massupdate' : 'trigger.massupdate')
->addVar('ids', $data['ids'])
->addVar('location_url', $data['location_url'])
->addVar('context', $data['context'])
->disablePasswordAutofill();
if ($data['prototype']) {
->addVar('parent_discoveryid', $data['parent_discoveryid'])
->addVar('prototype', $data['prototype']);
$trigger_form_list = (new CFormList('trigger-form-list'))
(new CVisibilityBox('visible[priority]', 'priority', _('Original')))
->setLabel(_('Severity'))
->setAttribute('autofocus', 'autofocus'),
(new CSeverity('priority'))->setId('priority')
(new CVisibilityBox('visible[manual_close]', 'manual-close', _('Original')))
->setLabel(_('Allow manual close')),
(new CRadioButtonList('manual_close', ZBX_TRIGGER_MANUAL_CLOSE_NOT_ALLOWED))
->addValue(_('No'), ZBX_TRIGGER_MANUAL_CLOSE_NOT_ALLOWED)
->addValue(_('Yes'), ZBX_TRIGGER_MANUAL_CLOSE_ALLOWED)
$tags_form_list = (new CFormList('tags-form-list'))