mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-08-22 10:18:10 +02:00
18 lines
834 B
PHTML
18 lines
834 B
PHTML
<?php
|
|
|
|
use Icinga\Web\Widget\SearchDashboard;
|
|
|
|
$searchDashboard = new SearchDashboard();
|
|
$searchDashboard->setUser($this->Auth()->getUser());
|
|
|
|
$searchPane = $searchDashboard->search('dummy')->getActiveHome()->getEntry(SearchDashboard::SEARCH_PANE);
|
|
if ($searchPane->hasEntries()): ?>
|
|
<form action="<?= $this->href('search') ?>" method="get" role="search" class="search-control">
|
|
<input type="text" name="q" id="search" class="search search-input" required
|
|
placeholder="<?= $this->translate('Search') ?> …"
|
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
|
|
<button class="search-reset icon-cancel" type="reset"></button>
|
|
</form>
|
|
<?php endif; ?>
|
|
<?= $menuRenderer->setCssClass('primary-nav')->setElementTag('nav')->setHeading(t('Navigation')); ?>
|