Add IcingaUserGroupMemberForm

This commit is contained in:
Alexander Fuhr 2015-06-12 13:14:52 +02:00
parent 5f18a40e45
commit a9a6457748
1 changed files with 23 additions and 0 deletions

View 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'));
}
}