← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10910: Add set follow-up function for program instances in tracking function.

 

------------------------------------------------------------
revno: 10910
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-05-21 12:45:21 +0700
message:
  Add set follow-up function for  program instances in tracking function.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingRecords.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/programTrackingRecords.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingRecords.vm	2013-04-16 02:02:11 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programTrackingRecords.vm	2013-05-21 05:45:21 +0000
@@ -6,7 +6,7 @@
 		<td>&nbsp;</td>
 		<td id='searchInforLbl'>
 		#if($!listAll)
-			$i18n.getString( "list_all_patients" )
+			$i18n.getString( "list_events" )
 		#else
 			$i18n.getString( "search_patients" )
 		#end
@@ -34,7 +34,7 @@
 			<th>$i18n.getString('date_scheduled')</th>
 			<th>$i18n.getString('full_name')</th>
 			<th>$i18n.getString('phone_number')</th>
-			<th>$i18n.getString( "program_stage" )</th>
+			<th>$i18n.getString( "events" )</th>
 			<th>$i18n.getString( "operations" )</th>
 		</tr>
 	</thead>
@@ -49,11 +49,8 @@
 			</td>
 			<td>
 				#set( $comment = $!programStageInstance.programInstance.patientComment.commentText )
-				#if( $!programStageInstance.programInstance.followup=='true')
-					<img src='../images/marked.png' title='$!comment'>
-				#else
-					<img src='../images/unmarked.png' title='$!comment'>
-				#end
+				<a href='javascript:markForFollowup($programStageInstance.programInstance.id, false)' #if( $$!programStageInstance.programInstance.followup == 'false') class='hidden' #end id='imgMarkFollowup' title='$comment' ><img src='../images/marked.png'></a>
+				<a href='javascript:markForFollowup($programStageInstance.programInstance.id, true)' #if( $$!programStageInstance.programInstance.followup == 'true') class='hidden' #end id='imgUnmarkFollowup' ><img src='../images/unmarked.png'></a>			
 			</td>
 			<td>
 				#if($!programStageInstance.executionDate)