2014-03-04 15:44:21 +01:00
|
|
|
<div class="controls">
|
2013-08-14 10:53:25 +02:00
|
|
|
<?= $this->tabs->render($this); ?>
|
2014-02-25 11:26:11 +01:00
|
|
|
</div>
|
2013-08-20 17:06:44 +02:00
|
|
|
|
2014-03-04 15:44:21 +01:00
|
|
|
<div class="content">
|
2013-08-19 18:25:20 +02:00
|
|
|
<?php $errors = $this->form->getErrorMessages(); ?>
|
2013-08-20 17:06:44 +02:00
|
|
|
|
2013-11-20 19:10:38 +01:00
|
|
|
<?php if (isset($this->messageBox)): ?>
|
|
|
|
<?= $this->messageBox->render() ?>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2013-08-27 14:37:22 +02:00
|
|
|
<?php if ($this->successMessage): ?>
|
2014-03-04 16:07:52 +01:00
|
|
|
<div>
|
2013-10-23 12:25:51 +02:00
|
|
|
<i class="icinga-icon-success"></i>
|
2013-08-27 14:37:22 +02:00
|
|
|
<strong><?= $this->escape($this->successMessage); ?></strong>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2013-08-19 18:25:20 +02:00
|
|
|
<?php if (!empty($errors)) : ?>
|
2014-03-04 16:07:52 +01:00
|
|
|
<div>
|
2013-08-22 17:17:58 +02:00
|
|
|
<h4>Errors occured when trying to save the project.</h4>
|
2013-08-21 16:12:06 +02:00
|
|
|
<p>
|
|
|
|
The following errors occured when trying to save the configuration:
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<?php foreach($errors as $error): ?>
|
|
|
|
<li><?= $this->escape($error) ?></li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
2013-08-19 18:25:20 +02:00
|
|
|
</div>
|
2013-08-14 10:53:25 +02:00
|
|
|
|
2013-08-19 18:25:20 +02:00
|
|
|
<?php endif; ?>
|
2014-02-25 11:26:11 +01:00
|
|
|
<?= $this->form ?>
|
|
|
|
</div>
|
|
|
|
|