Fix PDF output wherever it works, disable dead filter control
This commit is contained in:
parent
84876059f5
commit
448d7c1a8d
|
@ -520,8 +520,14 @@ class Monitoring_ListController extends Controller
|
||||||
private function createTabs()
|
private function createTabs()
|
||||||
{
|
{
|
||||||
$tabs = $this->getTabs();
|
$tabs = $this->getTabs();
|
||||||
$tabs->extend(new OutputFormat())
|
if (in_array($this->_request->getActionName(), array(
|
||||||
->extend(new DashboardAction());
|
'hosts',
|
||||||
|
'services',
|
||||||
|
'eventhistory',
|
||||||
|
'notifications'
|
||||||
|
))) {
|
||||||
|
$tabs->extend(new OutputFormat())->extend(new DashboardAction());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// @codingStandardsIgnoreEnd
|
// @codingStandardsIgnoreEnd
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs->render($this); ?>
|
<?= $this->tabs->render($this); ?>
|
||||||
<div style="margin: 1em">
|
<div style="margin: 1em" class="dontprint">
|
||||||
<?= $this->filterBox->render($this); ?>
|
<!--<?= $this->filterBox->render($this); ?>-->
|
||||||
<?= $this->sortControl->render($this); ?>
|
Sort by <?= $this->sortControl->render($this); ?>
|
||||||
<!--<?= $this->selectionToolbar('single'); ?>-->
|
<!--<?= $this->selectionToolbar('single'); ?>-->
|
||||||
</div>
|
</div>
|
||||||
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
|
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>
|
||||||
|
|
|
@ -3,12 +3,12 @@ $helper = $this->getHelper('MonitoringState');
|
||||||
?>
|
?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<div style="margin: 1em;">
|
<div style="margin: 1em;" class="dontprint">
|
||||||
<?= $this->filterBox ?> <?= $this->sortControl->render($this); ?>
|
<!--<?= $this->filterBox ?>-->Sort by <?= $this->sortControl->render($this); ?>
|
||||||
</div>
|
</div>
|
||||||
<!--<?= $this->selectionToolbar('multi', $this->href('monitoring/multi/host',array( 'host' => '*' ))); ?>-->
|
<!--<?= $this->selectionToolbar('multi', $this->href('monitoring/multi/host',array( 'host' => '*' ))); ?>-->
|
||||||
<div style="margin: 1em;">
|
|
||||||
<?= $this->paginationControl($hosts, null, null, array('preserve' => $this->preserve)); ?>
|
<?= $this->paginationControl($hosts, null, null, array('preserve' => $this->preserve)); ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<div style="margin: 1em">
|
<div style="margin: 1em" class="dontprint">
|
||||||
<?= $this->sortControl->render($this) ?>
|
Sort by <?= $this->sortControl->render($this) ?>
|
||||||
<!--<?= $this->selectionToolbar('single') ?>-->
|
<!--<?= $this->selectionToolbar('single') ?>-->
|
||||||
</div>
|
</div>
|
||||||
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?>
|
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?>
|
||||||
|
|
|
@ -4,14 +4,12 @@ $helper = $this->getHelper('MonitoringState');
|
||||||
if (!$this->compact): ?>
|
if (!$this->compact): ?>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<?= $this->tabs ?>
|
<?= $this->tabs ?>
|
||||||
<div style="margin: 1em;">
|
<div style="margin: 1em;" class="dontprint">
|
||||||
<?= $this->filterBox ?>
|
<!-- <?= $this->filterBox ?>-->
|
||||||
<?= $this->sortControl ?>
|
Sort by <?= $this->sortControl ?>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin: 1em;">
|
|
||||||
<?= $this->paginationControl($services, null, null, array('preserve' => $this->preserve)); ?>
|
<?= $this->paginationControl($services, null, null, array('preserve' => $this->preserve)); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.controls, .dontprint, .inlinepie {
|
.controls form, .controls .pagination, .controls > .tabs, .dontprint, .inlinepie {
|
||||||
display: none;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@page {
|
@page {
|
||||||
|
|
Loading…
Reference in New Issue