mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-04 04:39:34 -05:00
Controller, css: add action bar
This commit is contained in:
parent
8151769592
commit
e93d626d09
2 changed files with 18 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue