mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
Add IcingaUserGroupMemberForm
This commit is contained in:
parent
5f18a40e45
commit
a9a6457748
23
application/forms/IcingaUserGroupMemberForm.php
Normal file
23
application/forms/IcingaUserGroupMemberForm.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Forms;
|
||||
|
||||
use Icinga\Module\Director\Web\Form\DirectorObjectForm;
|
||||
|
||||
class IcingaUserGroupMemberForm extends DirectorObjectForm
|
||||
{
|
||||
public function setup()
|
||||
{
|
||||
$this->addElement('select', 'usergroup_id', array(
|
||||
'label' => $this->translate('Usergroup'),
|
||||
'description' => $this->translate('The name of the usergroup')
|
||||
));
|
||||
|
||||
$this->addElement('select', 'user_id', array(
|
||||
'label' => $this->translate('User'),
|
||||
'description' => $this->translate('The name of the user')
|
||||
));
|
||||
|
||||
$this->addElement('submit', $this->translate('Store'));
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user