mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
phpcs: Fix ObjectsController
This commit is contained in:
parent
16252822cf
commit
91a62ffbee
@ -240,23 +240,23 @@ abstract class ObjectsController extends ActionController
|
|||||||
$this->translate('All your %s Apply Rules'),
|
$this->translate('All your %s Apply Rules'),
|
||||||
$tType
|
$tType
|
||||||
);
|
);
|
||||||
$this->actions()/*->add(
|
$this->actions()
|
||||||
$this->getBackToDashboardLink()
|
//->add($this->getBackToDashboardLink())
|
||||||
)*/->add(
|
->add(
|
||||||
Link::create(
|
Link::create(
|
||||||
$this->translate('Add'),
|
$this->translate('Add'),
|
||||||
"director/$type/add",
|
"director/$type/add",
|
||||||
['type' => 'apply'],
|
['type' => 'apply'],
|
||||||
[
|
[
|
||||||
'title' => sprintf(
|
'title' => sprintf(
|
||||||
$this->translate('Create a new %s Apply Rule'),
|
$this->translate('Create a new %s Apply Rule'),
|
||||||
$tType
|
$tType
|
||||||
),
|
),
|
||||||
'class' => 'icon-plus',
|
'class' => 'icon-plus',
|
||||||
'data-base-target' => '_next'
|
'data-base-target' => '_next'
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$table = new ApplyRulesTable($this->db());
|
$table = new ApplyRulesTable($this->db());
|
||||||
$table->setType($this->getType());
|
$table->setType($this->getType());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user