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' => 'Hostgroup object', 'template' => 'Hostgroup template', ) )); if ($isTemplate) { $this->addElement('text', 'object_name', array( 'label' => $this->translate('Hostgroup template name'), 'required' => true, 'description' => $this->translate('Hostgroup for the Icinga hostgroup template you are going to create') )); } else { $this->addElement('text', 'object_name', array( 'label' => $this->translate('Hostgroup'), 'required' => true, 'description' => $this->translate('Hostgroup for the Icinga hostgroup 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('submit', $this->translate('Store')); } }