mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 14:24:41 +02:00
FilterEditor: helper function for op dropdown
This commit is contained in:
parent
c700e86008
commit
934a0a4914
@ -321,6 +321,22 @@ class FilterEditor extends AbstractWidget
|
||||
}
|
||||
}
|
||||
|
||||
protected function selectOperator(Filter $filter = null)
|
||||
{
|
||||
$ops = array(
|
||||
'AND' => 'AND',
|
||||
'OR' => 'OR',
|
||||
'NOT' => 'NOT'
|
||||
);
|
||||
|
||||
return $this->select(
|
||||
$this->elementId('operator', $filter),
|
||||
$ops,
|
||||
$filter === null ? null : $filter->getOperatorName(),
|
||||
array('style' => 'width: 5em')
|
||||
);
|
||||
}
|
||||
|
||||
protected function selectSign($filter)
|
||||
{
|
||||
$name = 'sign_' . $filter->getId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user