mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-11-02 12:14:13 +01:00
Put the navigation into a container and reload it once every 15 seconds from a distinct menu action. Include the current path into an URL param to still be able to mark the current menu item as active. fixes #6955
14 lines
477 B
PHTML
14 lines
477 B
PHTML
<?php
|
|
use Icinga\Web\Widget\SearchDashboard;
|
|
?>
|
|
|
|
<? if (SearchDashboard::search('dummy')->getPane('search')->hasComponents()): ?>
|
|
<form action="<?= $this->href('search') ?>" method="get" role="search">
|
|
<input
|
|
type="text" name="q" class="search autofocus" placeholder="<?= $this->translate('Search...') ?>"
|
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
|
/>
|
|
</form>
|
|
<? endif; ?>
|
|
<?= $menuRenderer; ?>
|