monitoring/list/services: Enhance PDF layout

This commit is contained in:
Johannes Meyer 2022-02-28 17:33:33 +01:00
parent 159ca2ce3f
commit 6d744e585f
1 changed files with 10 additions and 1 deletions

View File

@ -24,6 +24,15 @@ if (! $this->compact): ?>
data-icinga-multiselect-url="<?= $this->href('monitoring/services/show') ?>"
data-icinga-multiselect-controllers="<?= $this->href('monitoring/services') ?>"
data-icinga-multiselect-data="service,host">
<thead class="print-only">
<tr>
<th><?= $this->translate('State') ?></th>
<th><?= $this->translate('Service') ?></th>
<?php foreach($this->addColumns as $col): ?>
<th><?= $this->escape($col) ?></th>
<?php endforeach ?>
</tr>
</thead>
<tbody>
<?php foreach ($services->peekAhead($this->compact) as $service):
$serviceLink = $this->href(
@ -131,7 +140,7 @@ if (! $this->compact): ?>
</tbody>
</table>
<?php if ($services->hasMore()): ?>
<div class="action-links">
<div class="dont-print action-links">
<?= $this->qlink(
$this->translate('Show More'),
$this->url()->without(array('showCompact', 'limit')),