2013-11-06 19:02:30 +01:00
|
|
|
<?php
|
|
|
|
use Icinga\Web\Url;
|
|
|
|
$createResource = $this->href('/config/createresource');
|
|
|
|
?>
|
|
|
|
<?= $this->tabs->render($this); ?>
|
|
|
|
|
2013-11-20 19:10:38 +01:00
|
|
|
<?php if (isset($this->messageBox)): ?>
|
|
|
|
<?= $this->messageBox->render() ?>
|
|
|
|
<?php endif ?>
|
2013-11-13 18:12:00 +01:00
|
|
|
|
2013-11-06 19:02:30 +01:00
|
|
|
<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; ?>
|