require: {ngModel: 'ngModel'},
template: '<div class="form-group" ng-include="$ctrl.getTemplate()"></div>',
controller: function($scope, formatForSelect2) {
- var ts = $scope.ts = CRM.ts(),
+ var ts = $scope.ts = CRM.ts('org.civicrm.search'),
ctrl = this;
this.$onInit = function() {
return '~/crmSearchActions/crmSearchInput/integer.html';
}
+ if (ctrl.field.data_type === 'Float') {
+ return '~/crmSearchActions/crmSearchInput/float.html';
+ }
+
return '~/crmSearchActions/crmSearchInput/text.html';
};