=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js 2015-09-25 13:33:59 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.services.js 2015-10-05 13:54:45 +0000 @@ -489,6 +489,7 @@ var attMaxDate = trackedEntityFormAttributes[attId].allowFutureDate ? '' : 0; var att = trackedEntityFormAttributes[attId]; + var isTrackerAssociate = att.valueType === 'TRACKER_ASSOCIATE'; if (att) { @@ -496,8 +497,8 @@ ' element-id="' + i + '"' + this.getAttributesAsString(attributes) + ' d2-focus-next-on-enter' + - ' ng-model="selectedTei.' + attId + '" ' + - ' ng-disabled="editingDisabled || isHidden(attributesById.' + attId + '.id)"' + + ' ng-model="selectedTei.' + attId + '" ' + + ' ng-disabled="editingDisabled || isHidden(attributesById.' + attId + '.id) || ' + isTrackerAssociate + '"' + ' d2-validation ' + ' ng-required=" ' + (att.mandatory || att.unique) + '" '; @@ -514,13 +515,14 @@ } else { //check attribute type and generate corresponding angular input field - if (att.valueType === "number") { - newInputField = ''; } - else if (att.valueType === "bool") { + else if (att.valueType === "BOOLEAN") { newInputField = ' '; } - else if (att.valueType === "date") { + else if (att.valueType === "DATE") { newInputField = ''; } - else if (att.valueType === "trueOnly") { + else if (att.valueType === "TRUE_ONLY") { newInputField = ''; } - else if (att.valueType === "email") { + else if (att.valueType === "EMAIL") { newInputField = ''; } + else if (att.valueType === "TRACKER_ASSOCIATE") { + newInputField = '' + + ' ' + + ' ' + + ' ' + + ''; + } + else if (att.valueType === "LONG_TEXT") { + newInputField = '