<div class="form-group" ng-if="!$ctrl.isMulti()" >
  <input type="text" class="form-control" ng-model="$ctrl.value" id="{{:: $ctrl.labelId }}" ng-required="!$ctrl.input.field.nullable || $ctrl.input.field.required">
</div>
<div class="form-group" ng-if="$ctrl.isMulti()" >
  <input class="form-control" ng-model="$ctrl.value" id="{{:: $ctrl.labelId }}" ng-required="!$ctrl.input.field.nullable || $ctrl.input.field.required" crm-ui-select="{multiple: true, tags: [], tokenSeparators: [','], formatNoMatches: ''}"