mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
parent
360c14b0d5
commit
2f8160d020
@ -14,11 +14,9 @@ $createDbBackend = $this->href('/config/createAuthenticationBackend', array('typ
|
|||||||
|
|
||||||
<h1>Create Authentication Provider</h1>
|
<h1>Create Authentication Provider</h1>
|
||||||
<p>
|
<p>
|
||||||
<a href="<?= $createLdapBackend ?>"><?= $this->img('img/icons/create.png', array('title' => 'Create A New LDAP Authentication Backend'));
|
<a href="<?= $createLdapBackend ?>"><?= $this->img('img/icons/create.png'); ?> Create A New LDAP Authentication Backend</a>
|
||||||
?> Create A New LDAP Authentication Backend</a>
|
|
||||||
<br />
|
<br />
|
||||||
<a href="<?= $createDbBackend ?>"><?= $this->img('img/icons/create.png', array('title' => 'Create A New DB Authentication Backend'));
|
<a href="<?= $createDbBackend ?>"><?= $this->img('img/icons/create.png'); ?> Create A New DB Authentication Backend</a>
|
||||||
?> Create A New DB Authentication Backend</a>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<table class="configTable">
|
<table class="configTable">
|
||||||
@ -33,10 +31,10 @@ $createDbBackend = $this->href('/config/createAuthenticationBackend', array('typ
|
|||||||
<?= $backend->reorderForm; ?>
|
<?= $backend->reorderForm; ?>
|
||||||
</div>
|
</div>
|
||||||
<a href="<?= $this->href('config/editAuthenticationBackend', array('auth_backend' => $backend->name));?>">
|
<a href="<?= $this->href('config/editAuthenticationBackend', array('auth_backend' => $backend->name));?>">
|
||||||
<?= $this->img('img/icons/edit.png', array('title' => 'Edit')); ?> Edit</a> 
|
<?= $this->img('img/icons/edit.png'); ?> Edit</a> 
|
||||||
<?php if (count($this->backends) > 1): ?>
|
<?php if (count($this->backends) > 1): ?>
|
||||||
<a href="<?= $this->href('config/removeAuthenticationBackend', array('auth_backend' => $backend->name));?>">
|
<a href="<?= $this->href('config/removeAuthenticationBackend', array('auth_backend' => $backend->name));?>">
|
||||||
<?= $this->img('img/icons/remove.png', array('title' => 'Remove')); ?> Remove</a> 
|
<?= $this->img('img/icons/remove.png'); ?> Remove</a> 
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -12,8 +12,7 @@ $createResource = $this->href('/config/createresource');
|
|||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<h1>Create Resource</h1>
|
<h1>Create Resource</h1>
|
||||||
<p><a href="<?= $createResource ?>"><?= $this->img('img/icons/create.png', array('title' => 'Create A New Resource'));
|
<p><a href="<?= $createResource ?>"><?= $this->img('img/icons/create.png'); ?> Create A New Resource</a></p>
|
||||||
?> Create A New Resource</a></p>
|
|
||||||
|
|
||||||
<table class="configTable">
|
<table class="configTable">
|
||||||
<?php foreach ($this->resources as $name => $resource): ?>
|
<?php foreach ($this->resources as $name => $resource): ?>
|
||||||
@ -24,10 +23,10 @@ $createResource = $this->href('/config/createresource');
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="<?= $this->href('config/editresource', array('resource' => $name));?>">
|
<a href="<?= $this->href('config/editresource', array('resource' => $name));?>">
|
||||||
<?= $this->img('img/icons/edit.png', array('title' => 'Edit')); ?> Edit</a> 
|
<?= $this->img('img/icons/edit.png'); ?> Edit</a> 
|
||||||
<?php if (count($this->resources) > 1): ?>
|
<?php if (count($this->resources) > 1): ?>
|
||||||
<a href="<?= $this->href('config/removeresource', array('resource' => $name));?>">
|
<a href="<?= $this->href('config/removeresource', array('resource' => $name));?>">
|
||||||
<?= $this->img('img/icons/remove.png', array('title' => 'Remove')); ?> Remove</a> 
|
<?= $this->img('img/icons/remove.png'); ?> Remove</a> 
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
@ -1,56 +1,66 @@
|
|||||||
<?php use Icinga\Web\Url; ?>
|
<?php use Icinga\Web\Url; ?>
|
||||||
<?= $this->tabs->render($this); ?>
|
<div class="controls">
|
||||||
|
<?= $this->tabs->render($this); ?>
|
||||||
<h3>Monitoring Backends</h3>
|
|
||||||
|
|
||||||
<?php if (isset($this->messageBox)): ?>
|
|
||||||
<?= $this->messageBox->render() ?>
|
|
||||||
<?php endif ?>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<a href="<?= Url::fromPath('/monitoring/config/createbackend')->getAbsoluteUrl();?>">
|
|
||||||
<?= $this->img('img/icons/create.png') ?> Create New Monitoring Backend
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<?php foreach ($this->backends as $backendName => $config): ?>
|
|
||||||
<div>
|
|
||||||
<?php $removeUrl = Url::fromPath('/monitoring/config/removebackend', array('backend' => $backendName)); ?>
|
|
||||||
<?php $editUrl = Url::fromPath('/monitoring/config/editbackend', array('backend' => $backendName)); ?>
|
|
||||||
<b><?= $this->escape($backendName); ?></b>
|
|
||||||
<small>(Type: <?= $this->escape($config['type'] === 'ido' ? 'IDO' : ucfirst($config['type'])); ?>)</small>
|
|
||||||
<div>
|
|
||||||
<a href="<?= $removeUrl; ?>"><i class="icinga-icon-remove"></i> Remove This Backend</a><br/>
|
|
||||||
<a href="<?= $editUrl; ?>"><i class="icinga-icon-edit"></i> Edit This Backend</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br/>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<h3>Monitoring Instances</h3>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<a href="<?= Url::fromPath('/monitoring/config/createinstance')->getAbsoluteUrl();?>">
|
|
||||||
<i class="icinga-icon-create"></i> Create New Instance
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/>
|
<div class="content">
|
||||||
<?php foreach ($this->instances as $instanceName => $config): ?>
|
<h1>Monitoring Backends</h1>
|
||||||
<?php $removeUrl = Url::fromPath('/monitoring/config/removeinstance', array('instance' => $instanceName)); ?>
|
|
||||||
<?php $editUrl = Url::fromPath('/monitoring/config/editinstance', array('instance' => $instanceName)); ?>
|
|
||||||
<div>
|
|
||||||
<b><?= $this->escape($instanceName); ?></b>
|
|
||||||
<small>(Type: <?= isset($config['host']) ? 'Remote' : 'Local'; ?>)</small>
|
|
||||||
|
|
||||||
<div>
|
<?php if (isset($this->messageBox)): ?>
|
||||||
<a href="<?= $removeUrl; ?>"><i class="icinga-icon-remove"></i> Remove This Instance</a><br/>
|
<?= $this->messageBox->render() ?>
|
||||||
<a href="<?= $editUrl; ?>"><i class="icinga-icon-edit"></i> Edit This Instance</a>
|
<?php endif ?>
|
||||||
</div>
|
|
||||||
|
<p>
|
||||||
|
<a href="<?= Url::fromPath('/monitoring/config/createbackend')->getAbsoluteUrl();?>">
|
||||||
|
<?= $this->img('img/icons/create.png'); ?> Create New Monitoring Backend
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<table class="configTable">
|
||||||
|
<?php foreach ($this->backends as $backendName => $config): ?>
|
||||||
|
<tr>
|
||||||
|
<td class="configTable">
|
||||||
|
<?php
|
||||||
|
$removeUrl = Url::fromPath('/monitoring/config/removebackend', array('backend' => $backendName));
|
||||||
|
$editUrl = Url::fromPath('/monitoring/config/editbackend', array('backend' => $backendName));
|
||||||
|
?>
|
||||||
|
<b><?= $this->escape($backendName); ?></b>
|
||||||
|
<small>(Type: <?= $this->escape($config['type'] === 'ido' ? 'IDO' : ucfirst($config['type'])); ?>)</small>
|
||||||
|
<div>
|
||||||
|
<a href="<?= $removeUrl; ?>"><?= $this->img('img/icons/remove.png'); ?> Remove</a> 
|
||||||
|
<a href="<?= $editUrl; ?>"><?= $this->img('img/icons/edit.png'); ?> Edit</a>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<h1>Monitoring Instances</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="<?= Url::fromPath('/monitoring/config/createinstance')->getAbsoluteUrl();?>">
|
||||||
|
<?= $this->img('img/icons/create.png'); ?> Create New Instance
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<table class="configTable">
|
||||||
|
<?php foreach ($this->instances as $instanceName => $config): ?>
|
||||||
|
<tr>
|
||||||
|
<td class="configTable">
|
||||||
|
<?php
|
||||||
|
$removeUrl = Url::fromPath('/monitoring/config/removeinstance', array('instance' => $instanceName));
|
||||||
|
$editUrl = Url::fromPath('/monitoring/config/editinstance', array('instance' => $instanceName));
|
||||||
|
?>
|
||||||
|
<div>
|
||||||
|
<b><?= $this->escape($instanceName); ?></b>
|
||||||
|
<small>(Type: <?= isset($config['host']) ? 'Remote' : 'Local'; ?>)</small>
|
||||||
|
<div>
|
||||||
|
<a href="<?= $removeUrl; ?>"><?= $this->img('img/icons/remove.png'); ?> Remove</a> 
|
||||||
|
<a href="<?= $editUrl; ?>"><?= $this->img('img/icons/edit.png'); ?> Edit</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ td.configTable {
|
|||||||
border: solid;
|
border: solid;
|
||||||
border-width: thin;
|
border-width: thin;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
min-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.config-form-group {
|
div.config-form-group {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user