mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
BackendConfigForm: Don't wrap resource elements twice with .control-group
This commit is contained in:
parent
6fbae2d1c0
commit
66c436b98c
@ -216,8 +216,6 @@ class BackendConfigForm extends ConfigForm
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$decorators = static::$defaultElementDecorators;
|
|
||||||
array_pop($decorators); // Removes the HtmlTag decorator
|
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'select',
|
'select',
|
||||||
'resource',
|
'resource',
|
||||||
@ -227,7 +225,6 @@ class BackendConfigForm extends ConfigForm
|
|||||||
'description' => $this->translate('The resource to use'),
|
'description' => $this->translate('The resource to use'),
|
||||||
'multiOptions' => $this->resources[$resourceType],
|
'multiOptions' => $this->resources[$resourceType],
|
||||||
'value' => current($this->resources[$resourceType]),
|
'value' => current($this->resources[$resourceType]),
|
||||||
'decorators' => $decorators,
|
|
||||||
'autosubmit' => true
|
'autosubmit' => true
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
@ -237,7 +234,6 @@ class BackendConfigForm extends ConfigForm
|
|||||||
'resource_note',
|
'resource_note',
|
||||||
array(
|
array(
|
||||||
'escape' => false,
|
'escape' => false,
|
||||||
'decorators' => $decorators,
|
|
||||||
'value' => sprintf(
|
'value' => sprintf(
|
||||||
'<a href="%1$s" data-base-target="_next" title="%2$s" aria-label="%2$s">%3$s</a>',
|
'<a href="%1$s" data-base-target="_next" title="%2$s" aria-label="%2$s">%3$s</a>',
|
||||||
$this->getView()->url('config/editresource', array('resource' => $resourceName)),
|
$this->getView()->url('config/editresource', array('resource' => $resourceName)),
|
||||||
@ -246,16 +242,6 @@ class BackendConfigForm extends ConfigForm
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->addDisplayGroup(
|
|
||||||
array('resource', 'resource_note'),
|
|
||||||
'resource-group',
|
|
||||||
array(
|
|
||||||
'decorators' => array(
|
|
||||||
'FormElements',
|
|
||||||
array('HtmlTag', array('tag' => 'div', 'class' => 'control-group'))
|
|
||||||
)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (isset($formData['skip_validation']) && $formData['skip_validation']) {
|
if (isset($formData['skip_validation']) && $formData['skip_validation']) {
|
||||||
// In case another error occured and the checkbox was displayed before
|
// In case another error occured and the checkbox was displayed before
|
||||||
|
Loading…
x
Reference in New Issue
Block a user