parent
74a916d72a
commit
cef9b58029
|
@ -20,8 +20,13 @@ class InstancePage extends Form
|
||||||
public function createElements(array $formData)
|
public function createElements(array $formData)
|
||||||
{
|
{
|
||||||
$instanceConfigForm = new InstanceConfigForm();
|
$instanceConfigForm = new InstanceConfigForm();
|
||||||
$instanceConfigForm->createElements($formData);
|
$this->addSubForm($instanceConfigForm, 'instance_form');
|
||||||
$this->addElements($instanceConfigForm->getElements());
|
$instanceConfigForm->create($formData);
|
||||||
$this->getElement('name')->setValue('icinga');
|
$instanceConfigForm->getElement('name')->setValue('icinga');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getValues($suppressArrayNotation = false)
|
||||||
|
{
|
||||||
|
return $this->getSubForm('instance_form')->getValues($suppressArrayNotation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue