← Back to team overview

dhis2-devs team mailing list archive

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

 

------------------------------------------------------------
revno: 1891
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: trunk
timestamp: Thu 2010-08-05 12:18:58 +0700
message:
  Minor fix.
modified:
  dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/excelTemplateList.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-excel-reporting/src/main/webapp/dhis-web-excel-reporting/excelTemplateList.vm'
--- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/excelTemplateList.vm	2010-07-08 02:45:26 +0000
+++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/webapp/dhis-web-excel-reporting/excelTemplateList.vm	2010-08-05 05:18:58 +0000
@@ -13,7 +13,6 @@
 									    validateUploadExcelTemplate();
 									}
 				});
-				jQuery.validator.loadLocaled( jQuery("#curLocaleCode").val() );
 			}
 
 	);
@@ -59,22 +58,22 @@
 	#foreach( $templateFileName in $mapTemplateFiles.keySet() )
 		#set( $value = $mapTemplateFiles.get($templateFileName) )
 		<tr #id="tr${templateFileName}" >
-			<td>$encoder.htmlEncode( $templateFileName )</td>
-			<td axis='$value'>
-				#if( $encoder.htmlEncode( $value ) == 'true' )
-					$i18n.getString( 'template_using' ) 
-				#else
-					$i18n.getString( 'template_pending' ) 
-				#end
-			</td>			
-			<td align="left">
-				#if( $encoder.htmlEncode( $value ) == 'false' )
-				<a href="javascript:deleteExcelTemplate('$templateFileName');" title="$i18n.getString( 'remove' )"><img src="../images/delete.png" alt="$i18n.getString( 'remove' )"></a>
-				#end
-				<a href="javascript:mode = 'edit'; openEditExcelTemplate( '$templateFileName' );" title="$i18n.getString( 'edit' )"><img src="../images/edit.png" alt="$i18n.getString( 'edit' )"></a>
-				<a href="downloadExcelTemplate.action?fileName=$templateFileName" title="$i18n.getString( 'download' )"><img src="images/download.png" alt="$i18n.getString( 'download' )"></a>
-			</td>
-		</tr>	
+<td>$encoder.htmlEncode( $templateFileName )</td>
+<td axis='$value'>
+#if( $value )
+$i18n.getString( 'template_using' )
+#else
+$i18n.getString( 'template_pending' )
+#end
+</td>
+<td align="left">
+<a href="javascript:mode = 'edit'; openEditExcelTemplate( '$templateFileName' );" title="$i18n.getString( 'edit' )"><img src="../images/edit.png" alt="$i18n.getString( 'edit' )"></a>
+<a href="downloadExcelTemplate.action?fileName=$templateFileName" title="$i18n.getString( 'download' )"><img src="images/download.png" alt="$i18n.getString( 'download' )"></a>
+#if( !$value )
+<a href="javascript:deleteExcelTemplate('$templateFileName');" title="$i18n.getString( 'remove' )"><img src="../images/delete.png" alt="$i18n.getString( 'remove' )"></a>
+#end
+</td>
+</tr>
 	#end
 	</tbody>
 </table>