Show notification bar in the wizard as well

refs #7163
This commit is contained in:
Johannes Meyer 2014-11-04 13:48:09 +01:00
parent 805cb9f079
commit ab5df7d2ba
1 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,7 @@
<?php
use Icinga\Web\Notification;
$pages = $wizard->getPages();
$finished = isset($success);
$configPages = array_slice($pages, 2, count($pages) - 4, true);
@ -13,6 +15,16 @@ $maxProgress = @max(array_keys(array_filter(
)));
?>
<ul id="notifications"><?php
$notifications = Notification::getInstance();
if ($notifications->hasMessages()) {
foreach ($notifications->getMessages() as $m) {
echo '<li class="' . $m->type . '">' . $this->escape($m->message) . '</li>';
}
}
?></ul>
<div id="setup" data-base-target="layout">
<div class="header">
<?= $this->img('img/logo_icinga_big.png'); ?>