2013-08-16 16:24:12 +02:00
|
|
|
<?php
|
|
|
|
use Icinga\Web\Url;
|
|
|
|
$createLdapBackend = Url::fromPath(
|
|
|
|
'/config/createAuthenticationBackend',
|
|
|
|
array('type' => 'ldap')
|
|
|
|
)->getAbsoluteUrl();
|
|
|
|
|
|
|
|
$createDbBackend = Url::fromPath(
|
|
|
|
'/config/createAuthenticationBackend',
|
|
|
|
array('type' => 'db')
|
|
|
|
)->getAbsoluteUrl();
|
|
|
|
|
|
|
|
?>
|
2013-08-15 14:27:53 +02:00
|
|
|
<?= $this->tabs->render($this); ?>
|
2013-08-16 16:24:12 +02:00
|
|
|
|
2013-08-19 18:25:20 +02:00
|
|
|
<?php
|
|
|
|
$errors = $this->form->getErrorMessages();
|
|
|
|
if (!empty($errors)):
|
|
|
|
?>
|
2013-08-21 16:12:06 +02:00
|
|
|
<div class="alert alert-danger">
|
2013-08-22 17:17:58 +02:00
|
|
|
<h4>{{ERROR_ICON}} There are errors in your configuration:</h4>
|
2013-08-21 16:12:06 +02:00
|
|
|
<br/>
|
|
|
|
<ul>
|
2013-08-19 18:25:20 +02:00
|
|
|
<?php foreach($errors as $error): ?>
|
2013-08-21 16:12:06 +02:00
|
|
|
<li><?= $error ?></li>
|
2013-08-19 18:25:20 +02:00
|
|
|
<?php endforeach;?>
|
2013-08-21 16:12:06 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2013-08-19 18:25:20 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2013-08-16 16:24:12 +02:00
|
|
|
<div>
|
2013-08-22 17:17:58 +02:00
|
|
|
<a href="<?= $createLdapBackend ?>">{{CREATE_ICON}} Create A New LDAP Authentication Backend</a><br/>
|
|
|
|
<a href="<?= $createDbBackend ?>">{{CREATE_ICON}} Create A New DB Authentication Backend</a>
|
2013-08-16 16:24:12 +02:00
|
|
|
</div>
|
2013-08-15 14:27:53 +02:00
|
|
|
<?= $this->form ?>
|