BasketController: link to baskets from "add to..."

This commit is contained in:
Thomas Gelf 2018-11-25 22:02:26 +01:00
parent a3a2b5425b
commit 7b6deea2fa
2 changed files with 11 additions and 1 deletions

View File

@ -65,8 +65,19 @@ class BasketController extends ActionController
);
}
/**
* @throws \Icinga\Exception\MissingParameterException
*/
public function addAction()
{
$this->actions()->add(
Link::create(
$this->translate('Baskets'),
'director/baskets',
null,
['class' => 'icon-tag']
)
);
$this->addSingleTab($this->translate('Add to Basket'));
$this->addTitle($this->translate('Add chosen objects to a Configuration Basket'));
$form = new AddToBasketForm();

View File

@ -5,7 +5,6 @@ namespace Icinga\Module\Director\Forms;
use dipl\Html\Html;
use dipl\Html\HtmlDocument;
use dipl\Html\Link;
use Icinga\Exception\NotFoundError;
use Icinga\Module\Director\DirectorObject\Automation\Basket;
use Icinga\Module\Director\Web\Form\DirectorForm;