mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-25 14:54:25 +02:00
QuickSubForm: one more forgotten file
This commit is contained in:
parent
360812b719
commit
aee65a706a
35
library/Director/Web/Form/QuickSubForm.php
Normal file
35
library/Director/Web/Form/QuickSubForm.php
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Icinga\Module\Director\Web\Form;
|
||||||
|
|
||||||
|
abstract class QuickSubForm extends QuickBaseForm
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Whether or not form elements are members of an array
|
||||||
|
* @codingStandardsIgnoreStart
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
protected $_isArray = true;
|
||||||
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Load the default decorators
|
||||||
|
*
|
||||||
|
* @return Zend_Form_SubForm
|
||||||
|
*/
|
||||||
|
public function loadDefaultDecorators()
|
||||||
|
{
|
||||||
|
if ($this->loadDefaultDecoratorsIsDisabled()) {
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
|
$decorators = $this->getDecorators();
|
||||||
|
if (empty($decorators)) {
|
||||||
|
$this->addDecorator('FormElements')
|
||||||
|
->addDecorator('HtmlTag', array('tag' => 'dl'))
|
||||||
|
->addDecorator('Fieldset')
|
||||||
|
->addDecorator('DtDdWrapper');
|
||||||
|
}
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user