process/show: ooops

This commit is contained in:
Thomas Gelf 2014-11-30 12:18:04 +01:00
parent 0e0393c89e
commit fb18806c49
2 changed files with 13 additions and 1 deletions

View file

@ -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()

View file

@ -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>