mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
parent
2ace54edc0
commit
1c074c9807
@ -1,94 +1,116 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $tabs; ?>
|
<?= $tabs ?>
|
||||||
<h1><?= $this->translate('Monitoring Backends') ?></h1>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content" data-base-target="_next">
|
<div class="content" data-base-target="_next">
|
||||||
<p>
|
<div>
|
||||||
<a href="<?= $this->href('monitoring/config/createbackend'); ?>">
|
<h2><?= $this->translate('Monitoring Backends') ?></h2>
|
||||||
<?= $this->icon('plus'); ?> <?= $this->translate('Create New Monitoring Backend'); ?>
|
<?= $this->qlink(
|
||||||
</a>
|
$this->translate('Create A New Monitoring Backend') ,
|
||||||
</p>
|
'monitoring/config/createbackend',
|
||||||
<table class="action alternating">
|
null,
|
||||||
|
array(
|
||||||
|
'class' => 'button action-link',
|
||||||
|
'icon' => 'plus',
|
||||||
|
'title' => $this->translate('Create a new monitoring backend')
|
||||||
|
)
|
||||||
|
) ?>
|
||||||
|
<table class="action-table listing-table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?= $this->translate('Monitoring Backend') ?></th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<?php foreach ($this->backendsConfig as $backendName => $config): ?>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<?= $this->qlink(
|
||||||
|
$backendName,
|
||||||
|
'monitoring/config/editbackend',
|
||||||
|
array('backend-name' => $backendName),
|
||||||
|
array(
|
||||||
|
'icon' => 'edit',
|
||||||
|
'title' => sprintf($this->translate('Edit monitoring backend %s'), $backendName)
|
||||||
|
)
|
||||||
|
) ?>
|
||||||
|
<span class="text-small">(<?= sprintf(
|
||||||
|
$this->translate('Type: %s'),
|
||||||
|
$this->escape($config->type === 'ido' ? 'IDO' : ucfirst($config->type))
|
||||||
|
) ?>)
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td class="text-right">
|
||||||
|
<?= $this->qlink(
|
||||||
|
'',
|
||||||
|
'monitoring/config/removebackend',
|
||||||
|
array('backend-name' => $backendName),
|
||||||
|
array(
|
||||||
|
'class' => 'action-link',
|
||||||
|
'icon' => 'cancel',
|
||||||
|
'title' => sprintf($this->translate('Remove monitoring backend %s'), $backendName)
|
||||||
|
)
|
||||||
|
) ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2><?= $this->translate('Command Transports') ?></h2>
|
||||||
|
<?= $this->qlink(
|
||||||
|
$this->translate('Create A New Command Transport') ,
|
||||||
|
'monitoring/config/createtransport',
|
||||||
|
null,
|
||||||
|
array(
|
||||||
|
'class' => 'button action-link',
|
||||||
|
'icon' => 'plus',
|
||||||
|
'title' => $this->translate('Create a new command transport')
|
||||||
|
)
|
||||||
|
) ?>
|
||||||
|
<table class="action-table listing-table">
|
||||||
<thead>
|
<thead>
|
||||||
<th><?= $this->translate('Monitoring Backend'); ?></th>
|
<tr>
|
||||||
<th style="width: 5em"><?= $this->translate('Remove'); ?></th>
|
<th><?= $this->translate('Transport') ?></th>
|
||||||
</thead>
|
<th></th>
|
||||||
<tbody>
|
</tr>
|
||||||
<?php foreach ($this->backendsConfig as $backendName => $config): ?>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<?= $this->qlink(
|
|
||||||
$backendName,
|
|
||||||
'monitoring/config/editbackend',
|
|
||||||
array('backend-name' => $backendName),
|
|
||||||
array(
|
|
||||||
'icon' => 'edit',
|
|
||||||
'title' => sprintf($this->translate('Edit monitoring backend %s'), $backendName)
|
|
||||||
)
|
|
||||||
); ?>
|
|
||||||
<small>(<?= sprintf(
|
|
||||||
$this->translate('Type: %s'),
|
|
||||||
$this->escape($config->type === 'ido' ? 'IDO' : ucfirst($config->type))
|
|
||||||
); ?>)</small>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<?= $this->qlink(
|
|
||||||
'',
|
|
||||||
'monitoring/config/removebackend',
|
|
||||||
array('backend-name' => $backendName),
|
|
||||||
array(
|
|
||||||
'icon' => 'trash',
|
|
||||||
'title' => sprintf($this->translate('Remove monitoring backend %s'), $backendName)
|
|
||||||
)
|
|
||||||
); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<h1><?= $this->translate('Command Transports') ?></h1>
|
|
||||||
<p>
|
|
||||||
<a href="<?= $this->href('monitoring/config/createtransport'); ?>">
|
|
||||||
<?= $this->icon('plus'); ?> <?= $this->translate('Create New Transport'); ?>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
<table class="action alternating">
|
|
||||||
<thead>
|
|
||||||
<th><?= $this->translate('Transport'); ?></th>
|
|
||||||
<th style="width: 5em"><?= $this->translate('Remove'); ?></th>
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($this->transportConfig as $transportName => $config): ?>
|
<?php foreach ($this->transportConfig as $transportName => $config): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$transportName,
|
$transportName,
|
||||||
'monitoring/config/edittransport',
|
'monitoring/config/edittransport',
|
||||||
array('transport' => $transportName),
|
array('transport' => $transportName),
|
||||||
array(
|
array(
|
||||||
'icon' => 'edit',
|
'icon' => 'edit',
|
||||||
'title' => sprintf($this->translate('Edit command transport %s'), $transportName)
|
'title' => sprintf($this->translate('Edit command transport %s'), $transportName)
|
||||||
)
|
)
|
||||||
); ?>
|
); ?>
|
||||||
<small>(<?= sprintf(
|
<span class="text-small">(<?= sprintf(
|
||||||
$this->translate('Type: %s'),
|
$this->translate('Type: %s'),
|
||||||
$config->host !== null ? $this->translate('Remote') : $this->translate('Local')
|
$config->host !== null ? $this->translate('Remote') : $this->translate('Local')
|
||||||
); ?>)</small>
|
) ?>)
|
||||||
</td>
|
</span>
|
||||||
<td>
|
</td>
|
||||||
<?= $this->qlink(
|
<td class="text-right">
|
||||||
'',
|
<?= $this->qlink(
|
||||||
'monitoring/config/removetransport',
|
'',
|
||||||
array('transport' => $transportName),
|
'monitoring/config/removetransport',
|
||||||
array(
|
array('transport' => $transportName),
|
||||||
'icon' => 'trash',
|
array(
|
||||||
'title' => sprintf($this->translate('Remove command transport %s'), $transportName)
|
'class' => 'action-link',
|
||||||
)
|
'icon' => 'cancel',
|
||||||
); ?>
|
'title' => sprintf($this->translate('Remove command transport %s'), $transportName)
|
||||||
</td>
|
)
|
||||||
</tr>
|
); ?>
|
||||||
<?php endforeach; ?>
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user