← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 10113: Show incomplete icon for incomplete anonymous event

 

------------------------------------------------------------
revno: 10113
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2013-03-10 20:01:21 +0700
message:
  Show incomplete icon for incomplete anonymous event
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstancesList.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/programStageInstancesList.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstancesList.vm	2012-12-14 17:07:44 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programStageInstancesList.vm	2013-03-10 13:01:21 +0000
@@ -1,3 +1,4 @@
+
 #if($message)
 	<span id='message' style="display:block;">$message</span>
 #else
@@ -28,7 +29,7 @@
 						#set($metaData = $noCols - $valueTypes.size() - 1)
 						#set($index = 0)
 						#foreach( $col in $grid.getHeaders() )
-							#if($index < $noCols - 1 )
+							#if($index < $noCols - 2 )
 								#if( $index==1 || $index > $metaData )
 									<th>$col.name</th>
 								#end
@@ -41,17 +42,17 @@
 		
 				<tbody id="list">
 					#foreach( $row in $grid.getRows() )
-						#set($index = 0)
 						<tr id="row">
 							<td>
 								#set( $nr = ( ( $paging.getCurrentPage() - 1  ) * $paging.pageSize ) + $velocityCount )
 								$nr
 							</td>
 							#set($completed = "")
+							#set($index = 0)
 							#foreach( $col in $row )
 								#if( $index == 0 )
 									#set($psid = $col)
-								#elseif($index == $noCols - 1)
+								#elseif($velocityCount == $noCols - 1)
 									#set($completed = $col)
 								#elseif( $index==1 || $index > $metaData )
 									<td>$!col</td>