← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 16064: Display attribute names as title for attribute values in Program-stage entry form.

 

------------------------------------------------------------
revno: 16064
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2014-07-10 13:49:13 +0700
message:
  Display attribute names as title for attribute values in Program-stage entry form.
modified:
  dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/reportDataEntryForm.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/reportDataEntryForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/reportDataEntryForm.vm	2014-04-17 16:00:32 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/reportDataEntryForm.vm	2014-07-10 06:49:13 +0000
@@ -1,7 +1,7 @@
 <div id='reportTitle' name='reportTitle' style="display:none;">
 	#set($id = '')
 	#foreach( $attributeValue in $entityInstance.attributeValues)
-		#set($id=$id + $attributeValue.value + ";")
+		#set($id=$id + "<b>" + $attributeValue.attribute.displayName + ":</b> " + $attributeValue.value + "<br>")
 	#end 
 				
 	<h3>$i18n.getString('records_of') $!encoder.htmlEncode( $id )  $i18n.getString('at') $programStage.displayName $i18n.getString('in') $organisationUnit.name $i18n.getString('on_value') $format.formatDate($programStageInstance.executionDate)</h3>
@@ -12,16 +12,15 @@
 	#if( $entityInstance )
 		<table>
 			<tr>            
+				<td class='bold coordinates1'>$i18n.getString('program'):</td>
+				<td class='coordinates2'>$program.displayName
+					<a href='javascript:markForFollowup($programStageInstance.programInstance.id, false)' #if( $programStageInstance.programInstance.followup == 'false') class='hidden' #end name='imgMarkFollowup' title='$i18n.getString("imgMarkFollowup")' ><img src='images/risk_small.png'></a>
+					<a href='javascript:markForFollowup($programStageInstance.programInstance.id, true)' #if( $programStageInstance.programInstance.followup == 'true') class='hidden' #end name='imgUnmarkFollowup' title='$i18n.getString("imgMarkFollowup")' ><img src='images/unrisk_small.png'></a>			
+				</td>
 				<td class='coordinates1'>
 					<span class='bold' id="entityInstanceName">$i18n.getString( "attributes" ): </span>
 				</td>
-				<td class='coordinates2'>$id</td>
-				<td class='bold coordinates1'>$i18n.getString('program'):</td>
-				<td class='coordinates2'>$program.displayName</td>
-				<td rowspan='2'>
-					<a href='javascript:markForFollowup($programStageInstance.programInstance.id, false)' #if( $programStageInstance.programInstance.followup == 'false') class='hidden' #end name='imgMarkFollowup' title='$i18n.getString("imgMarkFollowup")' ><img src='images/risk_large.png'></a>
-					<a href='javascript:markForFollowup($programStageInstance.programInstance.id, true)' #if( $programStageInstance.programInstance.followup == 'true') class='hidden' #end name='imgUnmarkFollowup' title='$i18n.getString("imgMarkFollowup")' ><img src='images/unrisk_large.png'></a>			
-				</td>
+				<td>$id</td>
 			</tr>
 			<tr><td class='bold coordinates1' style="vertical-align:top">$i18n.getString('program_stage'):</td>
 				<td class='coordinates2'>$programStageInstance.programStage.displayName</td>