IcingaEndpointForm: disable object type
This commit is contained in:
parent
f7d9867b97
commit
c6557d6d6c
|
@ -9,7 +9,7 @@ class IcingaEndpointForm extends DirectorObjectForm
|
|||
public function setup()
|
||||
{
|
||||
$isTemplate = $this->getSentValue('object_type') === 'template';
|
||||
|
||||
/*
|
||||
$this->addElement('select', 'object_type', array(
|
||||
'label' => $this->translate('Object type'),
|
||||
'description' => $this->translate('Whether this should be a template'),
|
||||
|
@ -19,7 +19,7 @@ class IcingaEndpointForm extends DirectorObjectForm
|
|||
'template' => 'Endpoint template',
|
||||
)
|
||||
));
|
||||
|
||||
*/
|
||||
if ($isTemplate) {
|
||||
$this->addElement('text', 'object_name', array(
|
||||
'label' => $this->translate('Endpoint template name'),
|
||||
|
|
Loading…
Reference in New Issue