addElement('select', 'object_type', array( 'label' => $this->translate('Object type'), 'description' => $this->translate('Whether this should be a template'), 'multiOptions' => array( null => '- please choose -', 'object' => 'Usergroup object', 'template' => 'Usergroup template', ) )); if ($isTemplate) { $this->addElement('text', 'object_name', array( 'label' => $this->translate('Usergroup template name'), 'required' => true, 'description' => $this->translate('Usergroup for the Icinga usergroup template you are going to create') )); } else { $this->addElement('text', 'object_name', array( 'label' => $this->translate('Usergroup'), 'required' => true, 'description' => $this->translate('Usergroup for the Icinga usergroup you are going to create') )); } $this->addElement('text', 'display_name', array( 'label' => $this->translate('Display Name'), 'description' => $this->translate('The name which should displayed.') )); $this->addElement('select', 'zone_id', array( 'label' => $this->translate('Cluster Zone'), 'description' => $this->translate('Check this usergroup in this specific Icinga cluster zone') )); $this->addElement('submit', $this->translate('Store')); } }