icingaweb2-module-director/application/forms/IcingaServiceVarForm.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 IcingaServiceVarForm extends DirectorObjectForm
{
public function setup()
{
$this->addElement('select', 'service_id', array(
2015-07-30 11:33:08 +02:00
'label' => $this->translate('Service'),
'description' => $this->translate('The name of the service'),
'multiOptions' => $this->optionalEnum($this->db->enumServices()),
'required' => true
));
$this->addElement('text', 'varname', array(
2015-07-30 11:33:08 +02:00
'label' => $this->translate('Name'),
'description' => $this->translate('service var name')
));
$this->addElement('textarea', 'varvalue', array(
2015-07-30 11:33:08 +02:00
'label' => $this->translate('Value'),
'description' => $this->translate('service var value')
));
$this->addElement('text', 'format', array(
2015-07-30 11:33:08 +02:00
'label' => $this->translate('Format'),
'description' => $this->translate('value format')
));
}
}