.writeExpr()"></crm-search-function-flag>
</div>
<div class="btn-group" ng-if="$ctrl.canAddArg()">
  <button type="button" class="btn btn-sm btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    <i class="crm-i fa-plus"></i> <span class="caret"></span>
  </button>
  <ul class="dropdown-menu">
    <li ng-repeat="exprInfo in $ctrl.sqlExprTypes" ng-if="$ctrl.getParam($ctrl.args.length).must_be.indexOf(exprInfo.type) >= 0">
      <a href ng-click="$ctrl.addArg(exprI