2015-06-03 12:05:50 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Forms;
|
|
|
|
|
|
|
|
use Icinga\Module\Director\Web\Form\DirectorObjectForm;
|
|
|
|
|
2015-06-24 10:15:03 +02:00
|
|
|
/**
|
|
|
|
* @deprecated
|
|
|
|
*/
|
2015-06-03 12:05:50 +02:00
|
|
|
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
|
2015-06-03 12:05:50 +02:00
|
|
|
));
|
|
|
|
|
|
|
|
$this->addElement('text', 'varname', array(
|
2015-07-30 11:33:08 +02:00
|
|
|
'label' => $this->translate('Name'),
|
2015-06-03 12:05:50 +02:00
|
|
|
'description' => $this->translate('host var name')
|
|
|
|
));
|
|
|
|
|
|
|
|
$this->addElement('textarea', 'varvalue', array(
|
2015-07-30 11:33:08 +02:00
|
|
|
'label' => $this->translate('Value'),
|
2015-06-03 12:05:50 +02:00
|
|
|
'description' => $this->translate('host var value')
|
|
|
|
));
|
|
|
|
|
|
|
|
$this->addElement('text', 'format', array(
|
2015-07-30 11:33:08 +02:00
|
|
|
'label' => $this->translate('Format'),
|
2015-06-03 12:05:50 +02:00
|
|
|
'description' => $this->translate('value format')
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|