mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
FilterEditor: new helper for text inputs
This commit is contained in:
parent
1c5cba9ddf
commit
0e4a8575a9
@ -286,6 +286,19 @@ class FilterEditor extends AbstractWidget
|
||||
return $html;
|
||||
}
|
||||
|
||||
protected function text(Filter $filter = null)
|
||||
{
|
||||
$value = $filter === null ? '' : $filter->getExpression();
|
||||
if (is_array($value)) {
|
||||
$value = '(' . implode('|', $value) . ')';
|
||||
}
|
||||
return sprintf(
|
||||
'<input type="text" name="%s" value="%s" />',
|
||||
$this->elementId('value', $filter),
|
||||
$value
|
||||
);
|
||||
}
|
||||
|
||||
protected function renderNewFilter()
|
||||
{
|
||||
$html = $this->selectColumn()
|
||||
|
Loading…
x
Reference in New Issue
Block a user