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

26 lines
645 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-11-13 20:08:58 +01:00
<th><?= $this->icon('host') ?> Host</th>
2014-11-17 16:27:12 +01:00
<th><?= $this->icon('conf') ?> 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>