From b3eb5ea102185fc1eed19cf1b96ea1429172d1ef Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Mon, 24 Oct 2016 14:43:38 +0200 Subject: [PATCH] IcingaServiceTable: Update apply rule rendering For new storage format, and change to table. refs #12033 --- application/tables/IcingaServiceTable.php | 61 +++++++++++++---------- public/css/module.less | 30 +++++------ 2 files changed, 51 insertions(+), 40 deletions(-) diff --git a/application/tables/IcingaServiceTable.php b/application/tables/IcingaServiceTable.php index 00736eab..30a8b4bd 100644 --- a/application/tables/IcingaServiceTable.php +++ b/application/tables/IcingaServiceTable.php @@ -2,6 +2,9 @@ namespace Icinga\Module\Director\Tables; +use Icinga\Data\Filter\Filter; +use Icinga\Exception\IcingaException; +use Icinga\Module\Director\IcingaConfig\AssignRenderer; use Icinga\Module\Director\Web\Table\QuickTable; class IcingaServiceTable extends QuickTable @@ -13,9 +16,9 @@ class IcingaServiceTable extends QuickTable public function getColumns() { return array( - 'id' => 's.id', - 'service' => 's.object_name', - 'object_type' => 's.object_type', + 'id' => 's.id', + 'service' => 's.object_name', + 'object_type' => 's.object_type', 'check_command_id' => 's.check_command_id', ); } @@ -47,21 +50,34 @@ class IcingaServiceTable extends QuickTable if (empty($extra)) { if ($row->check_command_id) { $htm .= ' ' . $v->qlink( - 'Create apply-rule', - 'director/service/add', - array('apply' => $row->service), - array('class' => 'icon-plus') - ); + 'Create apply-rule', + 'director/service/add', + array('apply' => $row->service), + array('class' => 'icon-plus') + ); } } else { - $htm .= '. Related apply rules: