Controller, css: add action bar

This commit is contained in:
Thomas Gelf 2016-11-22 15:28:37 +01:00
parent 8151769592
commit e93d626d09
2 changed files with 18 additions and 4 deletions

View file

@ -2,17 +2,14 @@
namespace Icinga\Module\Businessprocess;
use Exception;
use Icinga\Application\Icinga;
use Icinga\Module\Businessprocess\BusinessProcess;
use Icinga\Module\Businessprocess\Form\ProcessForm;
use Icinga\Module\Businessprocess\Form\SimulationForm;
use Icinga\Module\Businessprocess\Storage\LegacyStorage;
use Icinga\Module\Businessprocess\Web\Component\ActionBar;
use Icinga\Module\Monitoring\Backend;
use Icinga\Web\Controller as ModuleController;
use Icinga\Web\Notification;
use Icinga\Module\Businessprocess\Web\Form\FormLoader;
use Icinga\Web\Url;
use Icinga\Web\Widget;
class Controller extends ModuleController
@ -46,6 +43,15 @@ class Controller extends ModuleController
return $this->url;
}
protected function actions()
{
if ($this->view->actions === null) {
$this->view->actions = ActionBar::create();
}
return $this->view->actions;
}
protected function tabs()
{
if ($this->view->tabs === null) {

View file

@ -28,6 +28,14 @@
display: inline;
}
.action-bar a {
color: @icinga-blue;
&:hover::before {
text-decoration: none;
}
margin-right: 1em;
}
h1 a:focus {
outline: none;
}