<?php
use Icinga\Web\Url;
$createLdapBackend = Url::fromPath(
    '/config/createAuthenticationBackend',
    array('type' => 'ldap')
)->getAbsoluteUrl();

$createDbBackend = Url::fromPath(
    '/config/createAuthenticationBackend',
    array('type' => 'db')
)->getAbsoluteUrl();

?>
<?= $this->tabs->render($this); ?>

<?php
    $errors = $this->form->getErrorMessages();
    if (!empty($errors)):
?>
  <div class="alert alert-danger">
    <h4>{{ERROR_ICON}} There are errors in your configuration:</h4>
    <br/>
    <ul>
<?php foreach($errors as $error): ?>
        <li><?= $error ?></li>
<?php endforeach;?>
    </ul>
  </div>
<?php endif; ?>

<div>
  <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>
</div>
<?= $this->form ?>