mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-13 07:53:29 -05:00
process/show: ooops
This commit is contained in:
parent
0e0393c89e
commit
fb18806c49
2 changed files with 13 additions and 1 deletions
|
|
@ -36,7 +36,17 @@ class Bpapp_ProcessController extends Controller
|
|||
if ($this->params->get('edit')) {
|
||||
$bp->setEditMode();
|
||||
}
|
||||
}
|
||||
|
||||
protected function addSimulation($bp)
|
||||
{
|
||||
$simulations = $this->session()->get('simulations', array());
|
||||
foreach ($simulations as $node => $s) {
|
||||
$bp->getNode($node)
|
||||
->setState($s->state)
|
||||
->setAck($s->acknowledged)
|
||||
->setDowntime($s->in_downtime);
|
||||
}
|
||||
}
|
||||
|
||||
public function sourceAction()
|
||||
|
|
|
|||
|
|
@ -2,11 +2,13 @@
|
|||
<?= $this->tabs ?>
|
||||
<h1><?= $this->escape($this->title) ?>
|
||||
<a href="<?= $this->url()->with('mode', 'toplevel') ?>" title="<?= $this->escape('Switch to toplevel view') ?>"><?= $this->icon('dashboard') ?></a>
|
||||
<?= $this->render('simulationlink.phtml') ?>
|
||||
<?= $this->render('editlink.phtml') ?>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<div class="content" data-base-target="_next">
|
||||
<form method="post" action="<?= $this->url()->without('process') ?>" data-base-target="_self"> <?= $this->bp->renderHtml($this) ?>
|
||||
<?= $this->bp->renderHtml($this) ?>
|
||||
<?= $this->render('warnings.phtml') ?>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue