← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7870: Minor fix.

 

------------------------------------------------------------
revno: 7870
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2012-08-07 14:31:32 +0700
message:
  Minor fix.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.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/dataentryRecords.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.vm	2012-08-07 05:43:56 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/dataentryRecords.vm	2012-08-07 07:31:32 +0000
@@ -26,23 +26,26 @@
 	<table class="listTable mainPageTable" id="patientList">
 		#set( $mark = false )                 
 		#foreach( $patient in $patients )
+			#set( $programInstance = '')
 			#set( $programInstance = $programInstanceMap.get( $patient ) )
 				<tr #alternate( $mark )>
 					<td>
 						<input type='button' class='patient-object' value='$patient.getFullName()' onclick='javascript:showPatientHistory( "$patient.id" );' title='$i18n.getString( "patient_details_and_history" )'>
 					</td>
-					#set($programStageInstances = $programStageInstanceMap.get($programInstance) )
-					#foreach( $programStageInstance in $programStageInstances )
-						<td>
-							<img src='images/rightarrow.png'>
-						</td>
-						<td width='100px;'>
-							<input type='button' id='ps_$programStageInstance.id' name='programStageBtn' class='stage-object' value='$programStageInstance.programStage.name $format.formatDate( $programStageInstance.dueDate )' onclick='javascript:viewPrgramStageRecords( $programStageInstance.id );'>
-							<script>	
-								var status = $statusMap.get( $programStageInstance.id ); 
-								setEventColorStatus( 'ps_' + $programStageInstance.id ,status);
-							</script>
-						</td>
+					#if($!programStageInstanceMap.get($programInstance))
+						#set($programStageInstances = $programStageInstanceMap.get($programInstance) )
+						#foreach( $programStageInstance in $programStageInstances )
+							<td>
+								<img src='images/rightarrow.png'>
+							</td>
+							<td width='100px;'>
+								<input type='button' id='ps_$programStageInstance.id' name='programStageBtn' class='stage-object' value='$programStageInstance.programStage.name $format.formatDate( $programStageInstance.dueDate )' onclick='javascript:viewPrgramStageRecords( $programStageInstance.id );'>
+								<script>	
+									var status = $statusMap.get( $programStageInstance.id ); 
+									setEventColorStatus( 'ps_' + $programStageInstance.id ,status);
+								</script>
+							</td>
+						#end
 					#end
 				</tr>
 			#if( $mark )