BasketController: link to baskets from "add to..."
This commit is contained in:
parent
a3a2b5425b
commit
7b6deea2fa
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue