mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Remove remaining usages of the ElementWrapper- and HelpText-Decorator
refs #5525
This commit is contained in:
parent
5464321a1b
commit
95c839a8bd
@ -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(
|
||||
|
@ -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(
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user