44 lines
1.1 KiB
PHTML
44 lines
1.1 KiB
PHTML
<?php
|
|
use Icinga\Web\Url;
|
|
$createResource = $this->href('/config/createresource');
|
|
?>
|
|
<?= $this->tabs->render($this); ?>
|
|
|
|
<?php if (isset($this->messageBox)): ?>
|
|
<?= $this->messageBox->render() ?>
|
|
<?php endif ?>
|
|
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading panel-title">
|
|
Create Resource
|
|
</div>
|
|
<div class="panel-body">
|
|
<a href="<?= $createResource ?>"><i class="icinga-icon-create"></i> Create A New Resource</a><br/>
|
|
</div>
|
|
</div>
|
|
|
|
<?php foreach ($this->resources as $name => $resource): ?>
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading panel-title">
|
|
<b>Resource: </b> <?= $this->escape($name); ?>
|
|
<br/>
|
|
</div>
|
|
<div class="panel-body">
|
|
|
|
<a href="<?= $this->href('config/editresource', array('resource' => $name));?>">
|
|
<i class="icinga-icon-edit"></i> Edit This Resource
|
|
</a>
|
|
<br/>
|
|
|
|
<?php if (count($this->resources) > 1): ?>
|
|
<a href="<?= $this->href('config/removeresource', array('resource' => $name));?>">
|
|
<i class="icinga-icon-remove"></i> Remove This Resource
|
|
</a>
|
|
<br/>
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<?php endforeach; ?> |