dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23891
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11638: Added missing file
------------------------------------------------------------
revno: 11638
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-08-12 17:41:12 +0200
message:
Added missing file
added:
dhis-2/dhis-services/dhis-service-reporting/src/main/resources/html-report.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
=== added file 'dhis-2/dhis-services/dhis-service-reporting/src/main/resources/html-report.vm'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/resources/html-report.vm 1970-01-01 00:00:00 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/resources/html-report.vm 2013-08-12 15:41:12 +0000
@@ -0,0 +1,52 @@
+<script type="text/javascript">
+
+dhis2.util.namespace( 'dhis2.report' );
+
+dhis2.report.organisationUnit = {
+#if( $organisationUnit )
+ "id": "$!encoder.htmlEncode( ${organisationUnit.uid} )",
+ "name": "$!encoder.htmlEncode( ${organisationUnit.name} )",
+ "code": "$!encoder.htmlEncode( ${organisationUnit.code} )"
+#end
+};
+
+dhis2.report.organisationUnitHierarchy = [
+#if( $organisationUnitHierarchy )
+#set( $size = $organisationUnitHierarchy.size() )
+#foreach( $ou in $organisationUnitHierarchy )
+{
+ "id": "$!encoder.htmlEncode( ${ou.uid} )",
+ "name": "$!encoder.htmlEncode( ${ou.name} )",
+ "code": "$!encoder.htmlEncode( ${ou.code} )"
+}#if( $velocityCount < $size ),#end
+#end
+#end
+];
+
+dhis2.report.periods = [
+#if( $periods )
+#set( $size = $periods.size() )
+#foreach( $period in $periods )
+"$period.getIsoDate()"#if( $velocityCount < $size ),#end
+#end
+#end
+];
+
+dhis2.report.organisationUnitChildren = [
+#if( $organisationUnitChildren )
+#set( $size = $organisationUnitChildren.size() )
+#foreach( $ou in $organisationUnitChildren )
+{
+ "id": "$!encoder.htmlEncode( ${ou.uid} )",
+ "name": "$!encoder.htmlEncode( ${ou.name} )",
+ "code": "$!encoder.htmlEncode( ${ou.code} )"
+}#if( $velocityCount < $size ),#end
+#end
+#end
+];
+
+</script>
+
+<div>
+${report.designContent}
+</div>
\ No newline at end of file