icingaweb2/modules/monitoring/application/views/scripts/command/renderform.phtml

26 lines
674 B
PHTML
Raw Normal View History

2014-03-06 14:47:26 +01:00
<div class="controls">
<?= $this->tabs ?>
</div>
<div class="content">
<?php if (isset($this->objects) && !empty($this->objects) && isset($this->objects[0]->host_name)): ?>
2014-03-06 14:47:26 +01:00
<table class="objectlist">
<thead>
<tr>
2014-03-06 14:47:26 +01:00
<th><?= $this->img('img/icons/host.png') ?> Host</th>
<th><?= $this->img('img/icons/service.png') ?> Service</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->objects as $object): ?>
<tr>
<td><?= $object->host_name; ?></td>
2014-03-06 14:47:26 +01:00
<td><?= (isset($object->service_description) ? $object->service_description : '') ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
2014-03-06 14:47:26 +01:00
<?php endif ?>
<?= $this->form ?>
</div>