mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaEndpointForm: disable object type
This commit is contained in:
parent
f7d9867b97
commit
c6557d6d6c
@ -9,7 +9,7 @@ class IcingaEndpointForm extends DirectorObjectForm
|
|||||||
public function setup()
|
public function setup()
|
||||||
{
|
{
|
||||||
$isTemplate = $this->getSentValue('object_type') === 'template';
|
$isTemplate = $this->getSentValue('object_type') === 'template';
|
||||||
|
/*
|
||||||
$this->addElement('select', 'object_type', array(
|
$this->addElement('select', 'object_type', array(
|
||||||
'label' => $this->translate('Object type'),
|
'label' => $this->translate('Object type'),
|
||||||
'description' => $this->translate('Whether this should be a template'),
|
'description' => $this->translate('Whether this should be a template'),
|
||||||
@ -19,7 +19,7 @@ class IcingaEndpointForm extends DirectorObjectForm
|
|||||||
'template' => 'Endpoint template',
|
'template' => 'Endpoint template',
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
*/
|
||||||
if ($isTemplate) {
|
if ($isTemplate) {
|
||||||
$this->addElement('text', 'object_name', array(
|
$this->addElement('text', 'object_name', array(
|
||||||
'label' => $this->translate('Endpoint template name'),
|
'label' => $this->translate('Endpoint template name'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user