IcingaEndpointForm: disable object type

This commit is contained in:
Thomas Gelf 2015-12-15 19:32:12 +01:00
parent f7d9867b97
commit c6557d6d6c
1 changed files with 2 additions and 2 deletions

View File

@ -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'),