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

36 lines
819 B
PHTML
Raw Normal View History

<?php if (isset($this->objects) && !empty($this->objects) && isset($this->objects[0]->host_name)): ?>
<table class="table table-bordered table-striped table-condensed">
<legend>Affected Objects</legend>
<thead>
<tr>
2013-10-23 11:56:01 +02:00
<th>
<i class="icinga-icon-host"></i>
Host Name
</th>
<th>
<i class="icinga-icon-service"></i>
Service Name
</th>
</tr>
</thead>
<tbody>
<?php foreach ($this->objects as $object): ?>
<tr>
<td><?= $object->host_name; ?></td>
<td><?= (isset($object->service_description) ? $object->service_description : ''); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<?php if ($this->form): ?>
<div>
<?= $this->form; ?>
<div class="clearfix"></div>
</div>
<?php endif; ?>