mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
DataField: Add form
This commit is contained in:
parent
5bc0037b34
commit
c31b7c7fa4
36
application/forms/DirectorDatafieldForm.php
Normal file
36
application/forms/DirectorDatafieldForm.php
Normal 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')
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user