mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
parent
4e36e2e6e1
commit
340e846c70
@ -1,67 +1,67 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $tabs ?>
|
<?= $tabs ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" data-base-target="_next">
|
<div class="content" data-base-target="_next">
|
||||||
<a href="<?= $this->href('config/createresource') ?>">
|
<a href="<?= $this->href('config/createresource') ?>">
|
||||||
<?= $this->icon('plus') ?> <?= $this->translate('Create A New Resource') ?>
|
<?= $this->icon('plus') ?> <?= $this->translate('Create A New Resource') ?>
|
||||||
</a>
|
</a>
|
||||||
<table class="action-table listing-table">
|
<table class="action-table listing-table">
|
||||||
<thead>
|
<thead>
|
||||||
<th><?= $this->translate('Resource') ?></th>
|
<th><?= $this->translate('Resource') ?></th>
|
||||||
<th style="width: 5em"><?= $this->translate('Remove') ?></th>
|
<th style="width: 5em"><?= $this->translate('Remove') ?></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($this->resources as $name => $value): ?>
|
<?php foreach ($this->resources as $name => $value): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
switch ($value->type) {
|
switch ($value->type) {
|
||||||
case 'db':
|
case 'db':
|
||||||
$icon = 'database';
|
$icon = 'database';
|
||||||
break;
|
break;
|
||||||
case 'ldap':
|
case 'ldap':
|
||||||
$icon = 'sitemap';
|
$icon = 'sitemap';
|
||||||
break;
|
break;
|
||||||
case 'livestatus':
|
case 'livestatus':
|
||||||
$icon = 'flash';
|
$icon = 'flash';
|
||||||
break;
|
break;
|
||||||
case 'ssh':
|
case 'ssh':
|
||||||
$icon = 'user';
|
$icon = 'user';
|
||||||
break;
|
break;
|
||||||
case 'file':
|
case 'file':
|
||||||
case 'ini':
|
case 'ini':
|
||||||
$icon = 'doc-text';
|
$icon = 'doc-text';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$icon = 'edit';
|
$icon = 'edit';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$name,
|
$name,
|
||||||
'config/editresource',
|
'config/editresource',
|
||||||
array('resource' => $name),
|
array('resource' => $name),
|
||||||
array(
|
array(
|
||||||
'icon' => $icon,
|
'icon' => $icon,
|
||||||
'title' => sprintf($this->translate('Edit resource %s'), $name)
|
'title' => sprintf($this->translate('Edit resource %s'), $name)
|
||||||
)
|
)
|
||||||
) ?>
|
) ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<center>
|
<center>
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
'',
|
'',
|
||||||
'config/removeresource',
|
'config/removeresource',
|
||||||
array('resource' => $name),
|
array('resource' => $name),
|
||||||
array(
|
array(
|
||||||
'icon' => 'trash',
|
'icon' => 'trash',
|
||||||
'title' => sprintf($this->translate('Remove resource %s'), $name)
|
'title' => sprintf($this->translate('Remove resource %s'), $name)
|
||||||
)
|
)
|
||||||
) ?>
|
) ?>
|
||||||
</center>
|
</center>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user