Dashboard: introduce "Director" section with...
..."Basket"
This commit is contained in:
parent
f4220016d8
commit
93cbd4f020
application/controllers
library/Director/Dashboard
|
@ -45,9 +45,7 @@ class BasketController extends ActionController
|
|||
$this->translate('Back'),
|
||||
'director/baskets',
|
||||
null,
|
||||
[
|
||||
'class' => 'icon-left-big'
|
||||
]
|
||||
['class' => 'icon-left-big']
|
||||
)
|
||||
);
|
||||
$uuid = hex2bin($this->params->get('uuid'));
|
||||
|
@ -71,9 +69,7 @@ class BasketController extends ActionController
|
|||
$this->translate('back'),
|
||||
'director/baskets',
|
||||
null,
|
||||
[
|
||||
'class' => 'icon-left-big'
|
||||
]
|
||||
['class' => 'icon-left-big']
|
||||
)
|
||||
);
|
||||
$this->addSingleTab($this->translate('Create Basket'));
|
||||
|
@ -84,6 +80,9 @@ class BasketController extends ActionController
|
|||
$this->content()->add($form);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Icinga\Exception\NotFoundError
|
||||
*/
|
||||
public function snapshotsAction()
|
||||
{
|
||||
$uuid = $this->params->get('uuid');
|
||||
|
|
|
@ -31,7 +31,7 @@ class DashboardController extends ActionController
|
|||
$this->setAutorefreshInterval(10);
|
||||
}
|
||||
|
||||
$mainDashboards = ['Objects', 'Alerts', 'Automation', 'Deployment', 'Data'];
|
||||
$mainDashboards = ['Objects', 'Alerts', 'Automation', 'Deployment', 'Director', 'Data'];
|
||||
$this->setTitle($this->translate('Icinga Director - Main Dashboard'));
|
||||
$names = $this->params->getValues('name', $mainDashboards);
|
||||
if (! $this->params->has('name')) {
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Dashboard\Dashlet;
|
||||
|
||||
class BasketDashlet extends Dashlet
|
||||
{
|
||||
protected $icon = 'tag';
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->translate('Object Basket');
|
||||
}
|
||||
|
||||
public function getSummary()
|
||||
{
|
||||
return $this->translate(
|
||||
'Preserve specific objects in a specific state'
|
||||
);
|
||||
}
|
||||
|
||||
public function getUrl()
|
||||
{
|
||||
return 'director/baskets';
|
||||
}
|
||||
|
||||
public function listRequiredPermissions()
|
||||
{
|
||||
return array('director/admin');
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Dashboard;
|
||||
|
||||
class DirectorDashboard extends Dashboard
|
||||
{
|
||||
protected $dashletNames = array(
|
||||
'Settings',
|
||||
'Basket',
|
||||
'SelfService',
|
||||
);
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->translate('Icinga Director Configuration');
|
||||
}
|
||||
}
|
|
@ -8,11 +8,9 @@ class InfrastructureDashboard extends Dashboard
|
|||
{
|
||||
protected $dashletNames = array(
|
||||
'Kickstart',
|
||||
'SelfService',
|
||||
'ApiUserObject',
|
||||
'EndpointObject',
|
||||
'ZoneObject',
|
||||
'Settings',
|
||||
);
|
||||
|
||||
public function getTitle()
|
||||
|
|
Loading…
Reference in New Issue