Remove remaining usages of the ElementWrapper- and HelpText-Decorator

refs #5525
This commit is contained in:
Johannes Meyer 2014-09-02 16:50:59 +02:00
parent 5464321a1b
commit 95c839a8bd
3 changed files with 2 additions and 20 deletions

View File

@ -9,8 +9,6 @@ use Zend_Config;
use Icinga\Web\Form;
use Icinga\Web\Request;
use Icinga\Web\Form\Element\Number;
use Icinga\Web\Form\Decorator\HelpText;
use Icinga\Web\Form\Decorator\ElementWrapper;
use Icinga\Data\ResourceFactory;
/**
@ -62,13 +60,7 @@ class DbResourceForm extends Form
'name' => 'port',
'label' => t('Port'),
'helptext' => t('The port to use'),
'value' => 3306,
'decorators' => array( // The order is important!
'ViewHelper',
'Errors',
new ElementWrapper(),
new HelpText()
)
'value' => 3306
)
),
$this->createElement(

View File

@ -9,8 +9,6 @@ use Zend_Config;
use Icinga\Web\Form;
use Icinga\Web\Request;
use Icinga\Web\Form\Element\Number;
use Icinga\Web\Form\Decorator\HelpText;
use Icinga\Web\Form\Decorator\ElementWrapper;
use Icinga\Data\ResourceFactory;
/**
@ -48,13 +46,7 @@ class LdapResourceForm extends Form
'name' => 'port',
'label' => t('Port'),
'helptext' => t('The port of the LDAP server to use for authentication'),
'value' => 389,
'decorators' => array( // The order is important!
'ViewHelper',
'Errors',
new ElementWrapper(),
new HelpText()
)
'value' => 389
)
),
$this->createElement(

View File

@ -8,9 +8,7 @@ use LogicException;
use Zend_Form;
use Zend_View_Interface;
use Icinga\Application\Icinga;
use Icinga\Web\Form\Decorator\HelpText;
use Icinga\Web\Form\Decorator\NoScriptApply;
use Icinga\Web\Form\Decorator\ElementWrapper;
use Icinga\Web\Form\Element\CsrfCounterMeasure;
/**