Thomas Gelf 20310a0c9e Choices: add dedicated action bar, add to...
...ObjectTabs, refine choice(s)Controller
2017-07-14 13:21:42 +02:00

28 lines
678 B
PHP

<?php
namespace Icinga\Module\Director\Web\ActionBar;
use ipl\Html\Link;
class ChoicesActionBar extends DirectorBaseActionBar
{
protected function assemble()
{
$type = $this->type;
$this->add(
$this->getBackToDashboardLink()
)->add(
Link::create(
$this->translate('Add'),
"director/templatechoice/$type",
['type' => 'object'],
[
'title' => $this->translate('Create a new template choice'),
'class' => 'icon-plus',
'data-base-target' => '_next'
]
)
);
}
}