setName('setup_welcome'); } /** * @see Form::createElements() */ public function createElements(array $formData) { $this->addElement( new Note( 'welcome', array( 'value' => t('%WELCOME%') ) ) ); $this->addElement( new 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')) ) ); } }