ObjectsController: temporarily re-add tpl link

This commit is contained in:
Thomas Gelf 2016-01-25 14:55:51 +01:00
parent 41d9179389
commit e139f4349f
1 changed files with 9 additions and 0 deletions

View File

@ -94,6 +94,15 @@ abstract class ObjectsController extends ActionController
'director/' . $ltype .'/add',
$addParams
);
if (! $dummy->isGroup()) {
$this->view->addLink .= ' ' . $this->view->icon('paste') . ' '
. $this->view->qlink(
$this->translate('Create template'),
'director/' . $ltype .'/add',
array('type' => 'template')
);
}
$this->view->title = $this->translate('Icinga ' . ucfirst($ltype));
$table = $this->loadTable($table)->setConnection($this->db());
$this->view->filterEditor = $table->getFilterEditor($this->getRequest());