icingaweb2-module-director/application/forms/IcingaHostVarForm.php

37 lines
1.1 KiB
PHP
Raw Normal View History

<?php
namespace Icinga\Module\Director\Forms;
use Icinga\Module\Director\Web\Form\DirectorObjectForm;
2015-06-24 10:15:03 +02:00
/**
* @deprecated
*/
class IcingaHostVarForm extends DirectorObjectForm
{
public function setup()
{
$this->addElement('select', 'host_id', array(
2015-07-30 11:33:08 +02:00
'label' => $this->translate('Host'),
'description' => $this->translate('The name of the host'),
'multiOptions' => $this->optionalEnum($this->db->enumHosts()),
'required' => true
));
$this->addElement('text', 'varname', array(
2015-07-30 11:33:08 +02:00
'label' => $this->translate('Name'),
'description' => $this->translate('host var name')
));
$this->addElement('textarea', 'varvalue', array(
2015-07-30 11:33:08 +02:00
'label' => $this->translate('Value'),
'description' => $this->translate('host var value')
));
$this->addElement('text', 'format', array(
2015-07-30 11:33:08 +02:00
'label' => $this->translate('Format'),
'description' => $this->translate('value format')
));
}
}