2015-07-29 17:18:52 +02:00
|
|
|
<div class="controls">
|
2014-07-23 12:55:43 +02:00
|
|
|
<?= $tabs; ?>
|
2014-02-25 11:26:11 +01:00
|
|
|
</div>
|
2014-03-08 15:00:23 +01:00
|
|
|
<div class="content" data-base-target="_next">
|
2015-09-22 14:12:08 +02:00
|
|
|
<a href="<?= $this->href('config/createresource'); ?>">
|
2015-03-12 12:12:34 +01:00
|
|
|
<?= $this->icon('plus'); ?> <?= $this->translate('Create A New Resource'); ?>
|
|
|
|
</a>
|
2015-06-17 17:28:28 +02:00
|
|
|
<table class="action alternating" id="resource-edit-table">
|
2014-07-23 12:55:43 +02:00
|
|
|
<thead>
|
|
|
|
<th><?= $this->translate('Resource'); ?></th>
|
|
|
|
<th style="width: 5em"><?= $this->translate('Remove'); ?></th>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2015-08-17 11:27:41 +02:00
|
|
|
<?php foreach ($this->resources as $name => $value): ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
2015-08-17 11:27:41 +02:00
|
|
|
<?php
|
|
|
|
switch ($value->type) {
|
|
|
|
case 'db':
|
|
|
|
$icon = 'database';
|
|
|
|
break;
|
|
|
|
case 'ldap':
|
|
|
|
$icon = 'sitemap';
|
|
|
|
break;
|
|
|
|
case 'livestatus':
|
|
|
|
$icon = 'flash';
|
|
|
|
break;
|
|
|
|
case 'ssh':
|
|
|
|
$icon = 'user';
|
|
|
|
break;
|
|
|
|
case 'file':
|
|
|
|
case 'ini':
|
|
|
|
$icon = 'doc-text';
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
$icon = 'edit';
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
2015-02-16 11:02:09 +01:00
|
|
|
<?= $this->qlink(
|
2015-02-24 11:35:25 +01:00
|
|
|
$name,
|
2015-02-16 11:02:09 +01:00
|
|
|
'config/editresource',
|
|
|
|
array('resource' => $name),
|
2015-02-24 11:35:25 +01:00
|
|
|
array(
|
2015-08-17 11:27:41 +02:00
|
|
|
'icon' => $icon,
|
2015-02-24 11:35:25 +01:00
|
|
|
'title' => sprintf($this->translate('Edit resource %s'), $name)
|
|
|
|
)
|
2015-02-16 11:02:09 +01:00
|
|
|
); ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
</td>
|
2015-02-16 11:02:09 +01:00
|
|
|
<td>
|
|
|
|
<center>
|
|
|
|
<?= $this->qlink(
|
2015-02-24 11:35:25 +01:00
|
|
|
'',
|
2015-02-16 11:02:09 +01:00
|
|
|
'config/removeresource',
|
|
|
|
array('resource' => $name),
|
2015-02-24 11:35:25 +01:00
|
|
|
array(
|
2015-02-27 14:47:46 +01:00
|
|
|
'icon' => 'trash',
|
2015-02-24 11:35:25 +01:00
|
|
|
'title' => sprintf($this->translate('Remove resource %s'), $name)
|
|
|
|
)
|
2015-02-16 11:02:09 +01:00
|
|
|
); ?>
|
|
|
|
</center>
|
2014-07-23 12:55:43 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2015-02-12 17:10:38 +01:00
|
|
|
<?php endforeach; ?>
|
2014-07-23 12:55:43 +02:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-11-13 20:08:58 +01:00
|
|
|
</div>
|