mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-23 13:54:27 +02:00
Controller/Extension: remove obsolete QuickSearch
This commit is contained in:
parent
b1d959a634
commit
9d60bceb0c
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Icinga\Module\Director\Web\Controller\Extension;
|
||||
|
||||
use ipl\Html\Html;
|
||||
|
||||
trait QuickSearch
|
||||
{
|
||||
public function quickSearch()
|
||||
{
|
||||
$search = $this->params->get('q');
|
||||
|
||||
$form = Html::tag('form', [
|
||||
'action' => $this->getRequest()->getUrl()->without(array('q', 'page', 'modifyFilter')),
|
||||
'class' => ['quicksearch', 'inline'],
|
||||
'method' => 'GET'
|
||||
]);
|
||||
|
||||
$form->add(
|
||||
Html::tag('input', [
|
||||
'type' => 'text',
|
||||
'name' => 'q',
|
||||
'value' => $search,
|
||||
'placeholder' => $this->translate('Search...'),
|
||||
'class' => 'search'
|
||||
])
|
||||
);
|
||||
|
||||
$this->controls()->add($form);
|
||||
|
||||
return $search;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user