mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
app, lib: formatting, syntax
This commit is contained in:
parent
40254714b8
commit
bbf85f052b
@ -517,7 +517,6 @@ class SyncruleController extends ActionController
|
|||||||
if ($this->showNotInBranch($this->translate('Modifying Sync Rules'))) {
|
if ($this->showNotInBranch($this->translate('Modifying Sync Rules'))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$this->addTitle($this->translate('Add sync rule'));
|
$this->addTitle($this->translate('Add sync rule'));
|
||||||
$this->tabs(new SyncRuleTabs())->activate('add');
|
$this->tabs(new SyncRuleTabs())->activate('add');
|
||||||
@ -609,12 +608,11 @@ class SyncruleController extends ActionController
|
|||||||
$form = SyncPropertyForm::load()->setDb($db);
|
$form = SyncPropertyForm::load()->setDb($db);
|
||||||
$this->tabs(new SyncRuleTabs($rule))->activate('property');
|
$this->tabs(new SyncRuleTabs($rule))->activate('property');
|
||||||
$this->actions()->add(new Link(
|
$this->actions()->add(new Link(
|
||||||
$this->translate('back'),
|
$this->translate('back'),
|
||||||
'director/syncrule/property',
|
'director/syncrule/property',
|
||||||
['rule_id' => $ruleId],
|
['rule_id' => $ruleId],
|
||||||
['class' => 'icon-left-big']
|
['class' => 'icon-left-big']
|
||||||
));
|
));
|
||||||
|
|
||||||
if ($id = $this->params->get('id')) {
|
if ($id = $this->params->get('id')) {
|
||||||
$form->loadObject((int) $id);
|
$form->loadObject((int) $id);
|
||||||
$this->addTitle(
|
$this->addTitle(
|
||||||
|
@ -116,7 +116,6 @@ class BranchStore
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function newFromDbResult($query)
|
protected function newFromDbResult($query)
|
||||||
|
@ -51,7 +51,7 @@ class HostActions extends HostActionsHook
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($allowEdit) {
|
if ($allowEdit) {
|
||||||
$actions[mt('director', 'Modify')] = Url::fromPath('director/host/edit',['name' => $hostname]);
|
$actions[mt('director', 'Modify')] = Url::fromPath('director/host/edit', ['name' => $hostname]);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $actions;
|
return $actions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user