mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
FilterEditor: hide "add" links
They where there to show how this should look like. Removed for now as they are not implemented yet. refs #6668
This commit is contained in:
parent
2b05aa9504
commit
49c679fe0f
@ -95,6 +95,8 @@ class FilterEditor extends AbstractWidget
|
|||||||
. $view->escape(t('Click to remove this part of your filter'))
|
. $view->escape(t('Click to remove this part of your filter'))
|
||||||
. '">' . $view->icon('remove.png') . '</a>';
|
. '">' . $view->icon('remove.png') . '</a>';
|
||||||
|
|
||||||
|
/*
|
||||||
|
// Temporarilly removed, not implemented yet
|
||||||
$addUrl = clone($url);
|
$addUrl = clone($url);
|
||||||
$addUrl->setParam('addToId', $idx);
|
$addUrl->setParam('addToId', $idx);
|
||||||
$addLink = ' <a href="' . $addUrl . '" title="'
|
$addLink = ' <a href="' . $addUrl . '" title="'
|
||||||
@ -103,7 +105,7 @@ class FilterEditor extends AbstractWidget
|
|||||||
$addLink .= ' <a href="' . $addUrl . '" title="'
|
$addLink .= ' <a href="' . $addUrl . '" title="'
|
||||||
. $view->escape(t('Click to add a filter expression to this operator'))
|
. $view->escape(t('Click to add a filter expression to this operator'))
|
||||||
. '">' . t('Expression') . ' (=, <, >, <=, >=)</a>';
|
. '">' . t('Expression') . ' (=, <, >, <=, >=)</a>';
|
||||||
|
*/
|
||||||
$selectedIndex = ($idx === $this->selectedIdx ? ' -<--' : '');
|
$selectedIndex = ($idx === $this->selectedIdx ? ' -<--' : '');
|
||||||
$selectIndex = ' <a href="' . $markUrl . '">o</a>';
|
$selectIndex = ' <a href="' . $markUrl . '">o</a>';
|
||||||
|
|
||||||
@ -125,7 +127,7 @@ class FilterEditor extends AbstractWidget
|
|||||||
),
|
),
|
||||||
$filter->getOperatorName(),
|
$filter->getOperatorName(),
|
||||||
array('style' => 'width: 5em')
|
array('style' => 'width: 5em')
|
||||||
) . $removeLink . ' ' . t('Add') . ': ' . $addLink;
|
) . $removeLink; // Disabled: . ' ' . t('Add') . ': ' . $addLink;
|
||||||
$html .= '<span class="handle"> </span>';
|
$html .= '<span class="handle"> </span>';
|
||||||
|
|
||||||
if ($level === 0) {
|
if ($level === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user