configuration: register global search

This commit is contained in:
Thomas Gelf 2016-03-18 16:02:58 +01:00
parent 42b668d4ae
commit 02fc1289f7
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,4 @@
<?php if (! $this->compact): ?>
<div class="controls">
<?= $this->tabs ?>
<h1><?= $this->escape($this->title) ?></h1>
@ -9,8 +10,9 @@
<?php endif ?>
<?= $this->table->getPaginator() ?>
</div>
<?php endif ?>
<div class="content"<?php if (! $this->stayHere): ?> data-base-target="_next"<?php endif ?>>
<div class="content<?php if ($this->compact): ?> compact<?php endif ?>"<?php if (! $this->stayHere): ?> data-base-target="_next"<?php endif ?>>
<?= $this->form ?>
<?php if (count($table)): ?>
<?= $this->table->render() ?>

View File

@ -6,6 +6,9 @@ $this->providePermission('director/hosts/write', $this->translate('Allow to conf
$this->providePermission('director/templates/read', $this->translate('Allow to see template details'));
$this->providePermission('director/templates/write', $this->translate('Allow to configure templates'));
$this->provideSearchUrl($this->translate('Host configs'), 'director/hosts?limit=10', 60);
$this->provideSearchUrl($this->translate('Service configs'), 'director/services?limit=10', 59);
$this->provideRestriction(
'director/hosttemplates/filter',
$this->translate('Allow to use only host templates matching this filter')

View File

@ -670,6 +670,10 @@ table.icinga-objects {
}
div.content.compact table.icinga-objects thead {
display: none;
}
table.deployment-log {
tr td:nth-child(2), tr th:nth-child(2) {