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

27 lines
639 B
PHP
Raw Normal View History

2015-07-30 11:33:08 +02:00
<?php
namespace Icinga\Module\Director\Forms;
use Icinga\Module\Director\Web\Form\QuickForm;
class CustomvarForm extends QuickForm
{
protected $submitLabel = false;
public function setup()
{
$this->removeCsrfToken();
$this->removeElement(self::ID);
$this->addElement('text', 'varname', array(
'label' => $this->translate('Variable name'),
'required' => true,
));
$this->addElement('text', 'varvalue', array(
'label' => $this->translate('Value'),
));
// $this->addHidden('format', 'string'); // expression, json?
}
}