parent
3d0497d003
commit
88e8408a7b
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Icinga\Module\Director\Web\Table;
|
||||
|
||||
use gipfl\IcingaWeb2\Table\Extension\MultiSelect;
|
||||
use Icinga\Data\Filter\Filter;
|
||||
use Icinga\Module\Director\Db;
|
||||
use Icinga\Module\Director\IcingaConfig\AssignRenderer;
|
||||
|
@ -13,6 +14,8 @@ use gipfl\IcingaWeb2\Url;
|
|||
|
||||
class GroupMemberTable extends ZfQueryBasedTable
|
||||
{
|
||||
use MultiSelect;
|
||||
|
||||
protected $searchColumns = [
|
||||
'o.object_name',
|
||||
// membership_type
|
||||
|
@ -40,6 +43,16 @@ class GroupMemberTable extends ZfQueryBasedTable
|
|||
$table->type = $type;
|
||||
return $table;
|
||||
}
|
||||
public function assemble()
|
||||
{
|
||||
if ($this->type === 'host') {
|
||||
$this->enableMultiSelect(
|
||||
'director/hosts/edit',
|
||||
'director/hosts',
|
||||
['name']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function setGroup(IcingaObjectGroup $group)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue