=== modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementGroupsAction.java' --- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementGroupsAction.java 2011-05-24 09:42:48 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetDataElementGroupsAction.java 2011-05-24 20:20:45 +0000 @@ -28,6 +28,7 @@ */ import java.util.ArrayList; +import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -66,6 +67,21 @@ this.key = key; } + private List removeDataElementGroups = new ArrayList(); + + public void setRemoveDataElementGroups( String removeDataElementGroups ) + { + if ( removeDataElementGroups.length() > 0 ) + { + List stringList = Arrays.asList( removeDataElementGroups.split( "," ) ); + + for ( String s : stringList ) + { + this.removeDataElementGroups.add( Integer.parseInt( s ) ); + } + } + } + private List dataElementGroups; public List getDataElementGroups() @@ -82,6 +98,15 @@ { dataElementGroups = new ArrayList( dataElementService.getAllDataElementGroups() ); + if ( removeDataElementGroups.size() > 0 ) + { + for ( Integer id : removeDataElementGroups ) + { + DataElementGroup dataElementGroup = dataElementService.getDataElementGroup( id ); + dataElementGroups.remove( dataElementGroup ); + } + } + if ( key != null ) { dataElementGroups = IdentifiableObjectUtils.filterNameByKey( dataElementGroups, key, true ); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/addDataElementGroupSet.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/addDataElementGroupSet.vm 2011-03-31 11:17:07 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/addDataElementGroupSet.vm 2011-05-24 20:20:45 +0000 @@ -1,4 +1,22 @@ +

$i18n.getString( "add_dataelementgroupset" )

@@ -18,44 +36,39 @@ + + + + - + + - - - - - + -
$i18n.getString( "available_dataelementgroup" )$i18n.getString( "group_members" ) - $i18n.getString( "available_dataelementgroup" )$i18n.getString( "group_members" ) +
< $i18n.getString( "filters" ) >
- + -
-
-
- +
+
+
+
- - - $i18n.getString( 'move_up' ) -
- $i18n.getString( 'move_up' ) +
-

+

+ + +

=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/updateDataElementGroupSet.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/updateDataElementGroupSet.vm 2011-03-31 11:17:07 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-datadictionary/src/main/webapp/dhis-web-maintenance-datadictionary/updateDataElementGroupSet.vm 2011-05-24 20:20:45 +0000 @@ -1,4 +1,38 @@ +

$i18n.getString( "update_dataelementgroupset" ) : $dataElementGroupSet.name

@@ -18,49 +52,46 @@ + + + + - + + - - - - - + - - + -
$i18n.getString( "available_dataelementgroup" )$i18n.getString( "group_members" ) - $i18n.getString( "available_dataelementgroup" )$i18n.getString( "group_members" ) +
< $i18n.getString( "filters" ) >
- + -
-
-
- +
+
+
+
+
- #foreach( $dataElementGroup in $selectedGroups ) #end - $i18n.getString( 'move_up' ) -
- $i18n.getString( 'move_up' ) -
-

+

+ + +

+