DataField: Add form

This commit is contained in:
Alexander Fuhr 2015-07-03 10:49:12 +02:00
parent 5bc0037b34
commit c31b7c7fa4
1 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,36 @@
<?php
namespace Icinga\Module\Director\Forms;
use Icinga\Module\Director\Web\Form\DirectorObjectForm;
class DirectorDatafieldForm extends DirectorObjectForm
{
public function setup()
{
$this->addElement('text', 'varname', array(
'label' => $this->translate('Field name')
));
$this->addElement('text', 'caption', array(
'label' => $this->translate('Caption')
));
$this->addElement('textarea', 'description', array(
'label' => $this->translate('Description')
));
$this->addElement('text', 'datatype', array(
'label' => $this->translate('Data type')
));
$this->addElement('text', 'datatype', array(
'label' => $this->translate('Data type')
));
$this->addElement('text', 'format', array(
'label' => $this->translate('Format'),
'description' => $this->translate('Field format')
));
}
}