mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
22718f158d
commit
aec74659f0
@ -1,73 +1,76 @@
|
|||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $tabs ?>
|
<?= $tabs ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="content" data-base-target="_next">
|
<div class="content">
|
||||||
<?= $this->qlink(
|
<?= $this->qlink(
|
||||||
$this->translate('Create A New Resource') ,
|
$this->translate('Create A New Resource') ,
|
||||||
'config/createresource',
|
'config/createresource',
|
||||||
null,
|
null,
|
||||||
array(
|
array(
|
||||||
'class' => 'button action-link',
|
'class' => 'button-link',
|
||||||
'icon' => 'plus',
|
'data-base-target' => '_next',
|
||||||
'title' => $this->translate('Create a new resource')
|
'icon' => 'plus',
|
||||||
|
'title' => $this->translate('Create a new resource')
|
||||||
)
|
)
|
||||||
) ?>
|
) ?>
|
||||||
<table class="action-table listing-table">
|
<table class="action-table listing-table" data-base-target="_next">
|
||||||
<thead>
|
<thead>
|
||||||
|
<tr>
|
||||||
<th><?= $this->translate('Resource') ?></th>
|
<th><?= $this->translate('Resource') ?></th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</thead>
|
</tr>
|
||||||
<tbody>
|
</thead>
|
||||||
<?php foreach ($this->resources as $name => $value): ?>
|
<tbody>
|
||||||
<tr>
|
<?php foreach ($this->resources as $name => $value): ?>
|
||||||
<td>
|
<tr>
|
||||||
<?php
|
<td>
|
||||||
switch ($value->type) {
|
<?php
|
||||||
case 'db':
|
switch ($value->type) {
|
||||||
$icon = 'database';
|
case 'db':
|
||||||
break;
|
$icon = 'database';
|
||||||
case 'ldap':
|
break;
|
||||||
$icon = 'sitemap';
|
case 'ldap':
|
||||||
break;
|
$icon = 'sitemap';
|
||||||
case 'livestatus':
|
break;
|
||||||
$icon = 'flash';
|
case 'livestatus':
|
||||||
break;
|
$icon = 'flash';
|
||||||
case 'ssh':
|
break;
|
||||||
$icon = 'user';
|
case 'ssh':
|
||||||
break;
|
$icon = 'user';
|
||||||
case 'file':
|
break;
|
||||||
case 'ini':
|
case 'file':
|
||||||
$icon = 'doc-text';
|
case 'ini':
|
||||||
break;
|
$icon = 'doc-text';
|
||||||
default:
|
break;
|
||||||
$icon = 'edit';
|
default:
|
||||||
break;
|
$icon = 'edit';
|
||||||
}
|
break;
|
||||||
?>
|
}
|
||||||
<?= $this->qlink(
|
?>
|
||||||
$name,
|
<?= $this->qlink(
|
||||||
'config/editresource',
|
$name,
|
||||||
array('resource' => $name),
|
'config/editresource',
|
||||||
array(
|
array('resource' => $name),
|
||||||
'icon' => $icon,
|
array(
|
||||||
'title' => sprintf($this->translate('Edit resource %s'), $name)
|
'icon' => $icon,
|
||||||
)
|
'title' => sprintf($this->translate('Edit resource %s'), $name)
|
||||||
) ?>
|
)
|
||||||
</td>
|
) ?>
|
||||||
<td class="text-right">
|
</td>
|
||||||
<?= $this->qlink(
|
<td class="icon-col text-right">
|
||||||
'',
|
<?= $this->qlink(
|
||||||
'config/removeresource',
|
'',
|
||||||
array('resource' => $name),
|
'config/removeresource',
|
||||||
array(
|
array('resource' => $name),
|
||||||
'class' => 'action-link',
|
array(
|
||||||
'icon' => 'cancel',
|
'class' => 'action-link',
|
||||||
'title' => sprintf($this->translate('Remove resource %s'), $name)
|
'icon' => 'cancel',
|
||||||
)
|
'title' => sprintf($this->translate('Remove resource %s'), $name)
|
||||||
) ?>
|
)
|
||||||
</td>
|
) ?>
|
||||||
</tr>
|
</td>
|
||||||
<?php endforeach ?>
|
</tr>
|
||||||
</tbody>
|
<?php endforeach ?>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user