mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
parent
3d0497d003
commit
88e8408a7b
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Icinga\Module\Director\Web\Table;
|
namespace Icinga\Module\Director\Web\Table;
|
||||||
|
|
||||||
|
use gipfl\IcingaWeb2\Table\Extension\MultiSelect;
|
||||||
use Icinga\Data\Filter\Filter;
|
use Icinga\Data\Filter\Filter;
|
||||||
use Icinga\Module\Director\Db;
|
use Icinga\Module\Director\Db;
|
||||||
use Icinga\Module\Director\IcingaConfig\AssignRenderer;
|
use Icinga\Module\Director\IcingaConfig\AssignRenderer;
|
||||||
@ -13,6 +14,8 @@ use gipfl\IcingaWeb2\Url;
|
|||||||
|
|
||||||
class GroupMemberTable extends ZfQueryBasedTable
|
class GroupMemberTable extends ZfQueryBasedTable
|
||||||
{
|
{
|
||||||
|
use MultiSelect;
|
||||||
|
|
||||||
protected $searchColumns = [
|
protected $searchColumns = [
|
||||||
'o.object_name',
|
'o.object_name',
|
||||||
// membership_type
|
// membership_type
|
||||||
@ -40,6 +43,16 @@ class GroupMemberTable extends ZfQueryBasedTable
|
|||||||
$table->type = $type;
|
$table->type = $type;
|
||||||
return $table;
|
return $table;
|
||||||
}
|
}
|
||||||
|
public function assemble()
|
||||||
|
{
|
||||||
|
if ($this->type === 'host') {
|
||||||
|
$this->enableMultiSelect(
|
||||||
|
'director/hosts/edit',
|
||||||
|
'director/hosts',
|
||||||
|
['name']
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function setGroup(IcingaObjectGroup $group)
|
public function setGroup(IcingaObjectGroup $group)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user