2014-09-08 15:21:14 +02:00
|
|
|
<?php
|
2015-07-24 13:34:11 +02:00
|
|
|
|
2022-05-10 11:57:50 +02:00
|
|
|
use Icinga\Web\Navigation\ConfigMenu;
|
2014-09-08 15:21:14 +02:00
|
|
|
use Icinga\Web\Widget\SearchDashboard;
|
|
|
|
|
2015-07-24 13:34:11 +02:00
|
|
|
$searchDashboard = new SearchDashboard();
|
|
|
|
$searchDashboard->setUser($this->Auth()->getUser());
|
|
|
|
|
|
|
|
if ($searchDashboard->search('dummy')->getPane('search')->hasDashlets()): ?>
|
2016-11-16 11:43:21 +01:00
|
|
|
<form action="<?= $this->href('search') ?>" method="get" role="search" class="search-control">
|
2019-07-25 17:29:13 +02:00
|
|
|
<input type="text" name="q" id="search" class="search search-input" required
|
2016-11-16 11:43:21 +01:00
|
|
|
placeholder="<?= $this->translate('Search') ?> …"
|
2017-09-21 17:46:37 +02:00
|
|
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
|
2016-11-16 11:43:21 +01:00
|
|
|
<button class="search-reset icon-cancel" type="reset"></button>
|
2014-09-08 15:21:14 +02:00
|
|
|
</form>
|
2015-09-04 10:53:01 +02:00
|
|
|
<?php endif; ?>
|
2015-09-27 16:06:46 +02:00
|
|
|
<?= $menuRenderer->setCssClass('primary-nav')->setElementTag('nav')->setHeading(t('Navigation')); ?>
|
2022-05-10 11:57:50 +02:00
|
|
|
<nav class="config-menu">
|
|
|
|
<?= new ConfigMenu() ?>
|
|
|
|
</nav>
|