warnings: show them if available

This commit is contained in:
Thomas Gelf 2014-11-30 12:14:45 +01:00
parent b50e8a082c
commit 0e0393c89e
2 changed files with 7 additions and 2 deletions

View file

@ -2,12 +2,11 @@
<?= $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->render('warnings.phtml') ?>
</div>

View file

@ -0,0 +1,6 @@
<?php if ($this->warnings): ?>
<h2><?= $this->translate('Warnings') ?></h2>
<?php foreach ($this->warnings as $warning): ?>
<?= $this->escape($warning) ?><br />
<?php endforeach ?>
<?php endif ?>