ServiceController: prefix "add service" with host

This commit is contained in:
Thomas Gelf 2016-03-22 19:09:21 +01:00
parent e753a741d9
commit ca6a9677bc
2 changed files with 9 additions and 1 deletions

View File

@ -52,6 +52,14 @@ class ServiceController extends ObjectController
} }
} }
public function addAction()
{
parent::addAction();
if ($this->host) {
$this->view->title = $this->host->object_name . ': ' . $this->view->title;
}
}
public function assignAction() public function assignAction()
{ {
$this->getTabs()->activate('assign'); $this->getTabs()->activate('assign');

View File

@ -186,7 +186,7 @@ abstract class ObjectController extends ActionController
); );
$form->handleRequest(); $form->handleRequest();
$this->render('object/form', null, true); $this->setViewScript('object/form');
} }
public function cloneAction() public function cloneAction()