monitoring/list/downtimes: Enhance PDF layout
This commit is contained in:
parent
122d52c953
commit
d5fbae7b28
|
@ -24,6 +24,12 @@ if (! $this->compact): ?>
|
|||
data-icinga-multiselect-url="<?= $this->href('monitoring/downtimes/show') ?>"
|
||||
data-icinga-multiselect-controllers="<?= $this->href("monitoring/downtimes") ?>"
|
||||
data-icinga-multiselect-data="downtime_id">
|
||||
<thead class="print-only">
|
||||
<tr>
|
||||
<th><?= $this->translate('State') ?></th>
|
||||
<th><?= $this->translate('Downtime') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($downtimes->peekAhead($this->compact) as $downtime):
|
||||
if (isset($downtime->service_description)) {
|
||||
|
@ -43,7 +49,7 @@ if (! $this->compact): ?>
|
|||
</tbody>
|
||||
</table>
|
||||
<?php if ($downtimes->hasMore()): ?>
|
||||
<div class="action-links">
|
||||
<div class="dont-print action-links">
|
||||
<?= $this->qlink(
|
||||
$this->translate('Show More'),
|
||||
$this->url()->without(array('showCompact', 'limit')),
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
$textId = 'downtime-' . $uniqId;
|
||||
$deleteButton = clone $delDowntimeForm;
|
||||
/** @var \Icinga\Module\Monitoring\Forms\Command\Object\DeleteDowntimeCommandForm $deleteButton */
|
||||
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action');
|
||||
$deleteButton->setAttrib('class', $deleteButton->getAttrib('class') . ' remove-action dont-print');
|
||||
$deleteButton->populate(
|
||||
array(
|
||||
'downtime_id' => $downtime->id,
|
||||
|
|
Loading…
Reference in New Issue