addField($this->isTemplateDashboard() ? null : new CWidgetFieldMultiSelectGroup('groupids', _('Host groups')) ) ->addField( new CWidgetFieldCheckBoxList('interface_type', _('Interface type'), [ INTERFACE_TYPE_AGENT => _('Zabbix agent'), INTERFACE_TYPE_SNMP => _('SNMP'), INTERFACE_TYPE_JMX => _('JMX'), INTERFACE_TYPE_IPMI => _('IPMI') ]) ) ->addField( (new CWidgetFieldRadioButtonList('layout', _('Layout'), [ STYLE_HORIZONTAL => _('Horizontal'), STYLE_VERTICAL => _('Vertical') ]))->setDefault(STYLE_HORIZONTAL) ) ->addField( new CWidgetFieldCheckBox( 'maintenance', $this->isTemplateDashboard() ? _('Show data in maintenance') : _('Show hosts in maintenance') ) ); } }