FormDataFilter: change icon for expression

This commit is contained in:
Thomas Gelf 2016-10-21 06:18:05 +00:00
parent 7756736006
commit 037c588d26
2 changed files with 16 additions and 6 deletions

View File

@ -171,7 +171,7 @@ class Zend_View_Helper_FormDataFilter extends Zend_View_Helper_FormElement
. $this->selectSign($filter) . $this->selectSign($filter)
. $this->element($filter) . $this->element($filter)
. $this->removeLink($filter) . $this->removeLink($filter)
. $this->addLink($filter); . $this->expandLink($filter);
} }
protected function renderFilterExpression(FilterExpression $filter, $level) protected function renderFilterExpression(FilterExpression $filter, $level)
@ -441,6 +441,15 @@ class Zend_View_Helper_FormDataFilter extends Zend_View_Helper_FormElement
); );
} }
protected function expandLink(Filter $filter)
{
return $this->filterActionButton(
$filter,
'angle-double-right',
t('Wrap this expression into an operator')
);
}
protected function stripLink(Filter $filter) protected function stripLink(Filter $filter)
{ {
return $this->filterActionButton( return $this->filterActionButton(

View File

@ -27,6 +27,7 @@ class IconHelper
'plus' => 'e805', 'plus' => 'e805',
'cancel' => 'e804', 'cancel' => 'e804',
'help' => 'e85b', 'help' => 'e85b',
'angle-double-right' => 'e87b',
); );
private $mappedUtf8Icons; private $mappedUtf8Icons;