=== modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/blue/head.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/blue/head.png 2010-11-29 16:55:31 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/blue/head.png 2011-02-26 22:07:25 +0000 differ === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/light_blue/head.png' Binary files dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/light_blue/head.png 2010-11-29 16:55:31 +0000 and dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/css/light_blue/head.png 2011-02-26 22:07:25 +0000 differ === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/reportviewer/action/GetReportDesignAction.java' --- dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/reportviewer/action/GetReportDesignAction.java 2010-12-26 15:38:45 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/reportviewer/action/GetReportDesignAction.java 2011-02-26 22:07:25 +0000 @@ -33,6 +33,7 @@ import org.hisp.dhis.report.Report; import org.hisp.dhis.report.ReportService; +import org.hisp.dhis.system.util.CodecUtils; import org.hisp.dhis.util.ContextUtils; import org.hisp.dhis.util.StreamActionSupport; @@ -43,6 +44,8 @@ public class GetReportDesignAction extends StreamActionSupport { + private static final String EXT_JRXML = ".jrxml"; + // ------------------------------------------------------------------------- // Dependencies // ------------------------------------------------------------------------- @@ -64,6 +67,12 @@ { this.id = id; } + + // ------------------------------------------------------------------------- + // Output + // ------------------------------------------------------------------------- + + private String filename; // ------------------------------------------------------------------------- // Action implementation @@ -74,7 +83,12 @@ { Report report = reportService.getReport( id ); - out.write( report.getDesignContent().getBytes() ); + if ( report.getDesignContent() != null ) + { + out.write( report.getDesignContent().getBytes() ); + } + + filename = CodecUtils.filenameEncode( report.getName() ) + EXT_JRXML; return SUCCESS; } @@ -88,6 +102,6 @@ @Override protected String getFilename() { - return "report.jrxml"; + return filename; } } === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addTableForm.vm' --- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addTableForm.vm 2011-02-19 00:09:05 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/addTableForm.vm 2011-02-26 19:24:20 +0000 @@ -256,6 +256,14 @@ #end + + +Toggle fixed organisation units  + + + +Toggle fixed periods  + + + + + -
- === modified file 'dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.js' --- dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.js 2011-02-19 00:09:05 +0000 +++ dhis-2/dhis-web/dhis-web-reporting/src/main/webapp/dhis-web-reporting/javascript/table.js 2011-02-26 19:24:20 +0000 @@ -188,6 +188,16 @@ } } +function toggleFixedOrganisationUnits() +{ + $( '#fixedOrganisationUnits' ).toggle( 'fast' ); +} + +function toggleFixedPeriods() +{ + $( '#fixedPeriods' ).toggle( 'fast' ); +} + // ----------------------------------------------------------------------------- // Dashboard // -----------------------------------------------------------------------------
$i18n.getString( "relative_periods" )