mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-11-01 11:48:43 +01:00
Automatically focusing the search element on the initial page load and on every auto-refresh of the menu is disruptive for both mobile devices and screen readers. fixes #7697
14 lines
465 B
PHTML
14 lines
465 B
PHTML
<?php
|
|
use Icinga\Web\Widget\SearchDashboard;
|
|
?>
|
|
|
|
<? if (SearchDashboard::search('dummy')->getPane('search')->hasDashlets()): ?>
|
|
<form action="<?= $this->href('search') ?>" method="get" role="search">
|
|
<input
|
|
type="text" name="q" class="search" placeholder="<?= $this->translate('Search...') ?>"
|
|
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
|
/>
|
|
</form>
|
|
<? endif; ?>
|
|
<?= $menuRenderer; ?>
|