=== added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientAttributeGroups.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientAttributeGroups.vm 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientAttributeGroups.vm 2011-10-02 09:55:51 +0000 @@ -0,0 +1,10 @@ +#set( $size = ${patientAttributeGroups.size} ) +{ "patientAttributeGroups": [ + #foreach( ${group} in $!{patientAttributeGroups} ) + { + "id": "${group.id}", + "name": "$!encoder.jsonEncode( ${group.name} )" + }#if( $velocityCount < $size ),#end + #end + ] +} \ No newline at end of file === added file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientAttributes.vm' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientAttributes.vm 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/ajax/jsonPatientAttributes.vm 2011-10-02 09:55:51 +0000 @@ -0,0 +1,10 @@ +#set( $size = $!{patientAttributes.size()} ) +{ "patientAttributes": [ + #foreach( $patientAttribute in $!{patientAttributes} ) + { + "id": "${patientAttribute.id}", + "name": "$!encoder.jsonEncode( ${patientAttribute.name} )" + }#if( $velocityCount < $size ),#end + #end + ] +} \ No newline at end of file