Fix PDF output wherever it works, disable dead filter control

This commit is contained in:
Thomas Gelf 2014-03-10 01:24:45 +01:00
parent 84876059f5
commit 448d7c1a8d
6 changed files with 21 additions and 17 deletions

View File

@ -520,8 +520,14 @@ class Monitoring_ListController extends Controller
private function createTabs()
{
$tabs = $this->getTabs();
$tabs->extend(new OutputFormat())
->extend(new DashboardAction());
if (in_array($this->_request->getActionName(), array(
'hosts',
'services',
'eventhistory',
'notifications'
))) {
$tabs->extend(new OutputFormat())->extend(new DashboardAction());
}
}
}
// @codingStandardsIgnoreEnd

View File

@ -1,8 +1,8 @@
<div class="controls">
<?= $this->tabs->render($this); ?>
<div style="margin: 1em">
<?= $this->filterBox->render($this); ?>
<?= $this->sortControl->render($this); ?>
<div style="margin: 1em" class="dontprint">
<!--<?= $this->filterBox->render($this); ?>-->
Sort by <?= $this->sortControl->render($this); ?>
<!--<?= $this->selectionToolbar('single'); ?>-->
</div>
<?= $this->paginationControl($history, null, null, array('preserve' => $this->preserve)); ?>

View File

@ -3,12 +3,12 @@ $helper = $this->getHelper('MonitoringState');
?>
<div class="controls">
<?= $this->tabs ?>
<div style="margin: 1em;">
<?= $this->filterBox ?> <?= $this->sortControl->render($this); ?>
<div style="margin: 1em;" class="dontprint">
<!--<?= $this->filterBox ?>-->Sort by <?= $this->sortControl->render($this); ?>
</div>
<!--<?= $this->selectionToolbar('multi', $this->href('monitoring/multi/host',array( 'host' => '*' ))); ?>-->
<div style="margin: 1em;">
<?= $this->paginationControl($hosts, null, null, array('preserve' => $this->preserve)); ?>
</div>
<div class="content">
<?php

View File

@ -1,7 +1,7 @@
<div class="controls">
<?= $this->tabs ?>
<div style="margin: 1em">
<?= $this->sortControl->render($this) ?>
<div style="margin: 1em" class="dontprint">
Sort by <?= $this->sortControl->render($this) ?>
<!--<?= $this->selectionToolbar('single') ?>-->
</div>
<?= $this->paginationControl($notifications, null, null, array('preserve' => $this->preserve)) ?>

View File

@ -4,14 +4,12 @@ $helper = $this->getHelper('MonitoringState');
if (!$this->compact): ?>
<div class="controls">
<?= $this->tabs ?>
<div style="margin: 1em;">
<?= $this->filterBox ?>
<?= $this->sortControl ?>
<div style="margin: 1em;" class="dontprint">
<!-- <?= $this->filterBox ?>-->
Sort by <?= $this->sortControl ?>
</div>
<div style="margin: 1em;">
<?= $this->paginationControl($services, null, null, array('preserve' => $this->preserve)); ?>
</div>
</div>
<div class="content">
<?php endif ?>

View File

@ -1,5 +1,5 @@
.controls, .dontprint, .inlinepie {
display: none;
.controls form, .controls .pagination, .controls > .tabs, .dontprint, .inlinepie {
display: none !important;
}
@page {