diff --git a/application/controllers/ProcessController.php b/application/controllers/ProcessController.php index 08666a3..7eb7eb9 100644 --- a/application/controllers/ProcessController.php +++ b/application/controllers/ProcessController.php @@ -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() diff --git a/application/views/scripts/process/show.phtml b/application/views/scripts/process/show.phtml index f334e9b..938f1db 100644 --- a/application/views/scripts/process/show.phtml +++ b/application/views/scripts/process/show.phtml @@ -2,11 +2,13 @@ tabs ?>

escape($this->title) ?> icon('dashboard') ?> + render('simulationlink.phtml') ?> + render('editlink.phtml') ?>

-
bp->renderHtml($this) ?> + bp->renderHtml($this) ?> render('warnings.phtml') ?>