← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15133: Fixed bug - User attribute doesn't display in TEI registration form.

 

------------------------------------------------------------
revno: 15133
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2014-05-03 12:01:21 +0800
message:
  Fixed bug - User attribute doesn't display in TEI registration form.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/trackedEntityInstanceForm.vm


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/trackedEntityInstanceForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/trackedEntityInstanceForm.vm	2014-04-13 14:11:24 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/trackedEntityInstanceForm.vm	2014-05-03 04:01:21 +0000
@@ -68,7 +68,14 @@
 															 #foreach ($option in $attribute.optionSet.options )
 																	 <option value="$option" #if("$value"=="$option") selected #end>$option</option>
 															 #end
-													 </select>
+													 </select>	
+											#elseif( $attribute.valueType == "users" )
+													<select inherit="$!attribute.inherit" class=' #validate( "default"  $mandatory  )' >
+														<option value="">[$i18n.getString("please_select")]</option>
+														#foreach( $user in $healthWorkers)
+															<option value="$user.id" #if($attributeValue == $user.id) selected="selected" #end >$user.name</option>
+														#end
+													</select>
 											 #elseif( $attribute.valueType == "phoneNumber" )
 													#if($value=='')
 														#set($value=$!phoneNumberAreaCode)