=== modified file 'dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetPeriodsAction.java' --- dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetPeriodsAction.java 2011-10-12 17:49:13 +0000 +++ dhis-2/dhis-web/dhis-web-light/src/main/java/org/hisp/dhis/light/dataentry/action/GetPeriodsAction.java 2011-10-12 21:08:12 +0000 @@ -53,8 +53,8 @@ public class GetPeriodsAction implements Action { - private static final int MAX_PERIODS = 36; - + private static final int MAX_PERIODS = 10; + // ------------------------------------------------------------------------- // Dependencies // ------------------------------------------------------------------------- @@ -90,7 +90,7 @@ // ------------------------------------------------------------------------- // Input & Output // ------------------------------------------------------------------------- - + private Integer organisationUnitId; public void setOrganisationUnitId( Integer organisationUnitId ) @@ -132,25 +132,25 @@ // ------------------------------------------------------------------------- // Action Implementation // ------------------------------------------------------------------------- - + @Override public String execute() { if ( dataSetId != null ) { OrganisationUnit organisationUnit = organisationUnitService.getOrganisationUnit( organisationUnitId ); - + DataSet dataSet = dataSetService.getDataSet( dataSetId ); CalendarPeriodType periodType = (CalendarPeriodType) dataSet.getPeriodType(); - periods = periodType.generateLast5Years( new Date() ); + periods = periodType.generateLast5Years( new Date() ); FilterUtils.filter( periods, new PastAndCurrentPeriodFilter() ); Collections.reverse( periods ); - + if ( periods.size() > MAX_PERIODS ) { periods = periods.subList( 0, MAX_PERIODS ); } - + for ( Period period : periods ) { period.setName( format.formatPeriod( period ) ); === modified file 'dhis-2/dhis-web/dhis-web-light/src/main/resources/org/hisp/dhis/light/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-light/src/main/resources/org/hisp/dhis/light/i18n_module.properties 2011-10-12 17:49:13 +0000 +++ dhis-2/dhis-web/dhis-web-light/src/main/resources/org/hisp/dhis/light/i18n_module.properties 2011-10-12 21:08:12 +0000 @@ -1,13 +1,15 @@ +menu = Menu +home = Home +navigate_to = Navigate to +dashboard = Dashboard +data_entry = Data Entry +logout = Logout +desktop_version = Desktop version report_table_parameters = Report parameters get_report = Get report +reporting_period = Report period select_organisation_unit = Please select organisation unit -DHIS_2=DHIS 2 -data_entry = Data Entry -dashboard = Dashboard available_datasets = Available data sets available_organisation_units = Available organisation units -logout = Logout available_periods = Available periods -menu = Menu -save = Save -reporting_period = Report period +dataset_is_complete = DataSet is complete \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/dataEntry.vm' --- dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/dataEntry.vm 2011-10-12 17:49:13 +0000 +++ dhis-2/dhis-web/dhis-web-light/src/main/webapp/dhis-web-light/dataEntry.vm 2011-10-12 21:08:12 +0000 @@ -61,20 +61,22 @@
- +
- +