2015-06-02 14:19:05 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Forms;
|
|
|
|
|
|
|
|
use Icinga\Module\Director\Web\Form\DirectorObjectForm;
|
|
|
|
|
2015-06-12 12:07:53 +02:00
|
|
|
class IcingaUserGroupForm extends DirectorObjectForm
|
2015-06-02 14:19:05 +02:00
|
|
|
{
|
|
|
|
public function setup()
|
|
|
|
{
|
2016-03-05 10:36:19 +01:00
|
|
|
$this->addHidden('object_type', 'object');
|
|
|
|
|
2015-07-30 11:33:08 +02:00
|
|
|
$this->addElement('text', 'object_name', array(
|
|
|
|
'label' => $this->translate('Usergroup'),
|
|
|
|
'required' => true,
|
2016-03-09 20:55:26 +01:00
|
|
|
'description' => $this->translate('Icinga object name for this user group')
|
2015-06-02 14:19:05 +02:00
|
|
|
));
|
|
|
|
|
2016-03-09 20:55:26 +01:00
|
|
|
$this->addGroupDisplayNameElement()
|
|
|
|
->setButtons();
|
2015-12-10 12:53:51 +01:00
|
|
|
|
2015-06-02 14:19:05 +02:00
|
|
|
}
|
|
|
|
}
|