setName('form_setup_welcome'); } /** * @see Form::createElements() */ public function createElements(array $formData) { $this->addElement( 'note', 'welcome', array( 'value' => t('%WELCOME%') ) ); $this->addElement( 'note', 'description', array( 'value' => t('%DESCRIPTION%') ) ); $this->addElement( 'text', 'token', array( 'required' => true, 'label' => t('Setup Token'), 'description' => t('Please enter the setup token you\'ve created earlier by using the icingacli'), 'validators' => array(new TokenValidator(Icinga::app()->getConfigDir() . '/setup.token')) ) ); } }