=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm 2012-07-21 14:59:13 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm 2012-07-26 03:35:55 +0000 @@ -1,3 +1,6 @@ +#set($noIden = $identifierTypes.size() ) +#set($noOtherGroup = $noGroupAttributes.size() ) +#set($noGroup = $attributeGroups.size() ) #if( $programInstance || $hasDataEntry=='true')
@@ -16,12 +19,12 @@
- #if( $identifierTypes.size() > 0 || $noGroupAttributes.size() > 0 || $attributeGroups.size() > 0 ) + #if( $noIden > 0 || $noOtherGroup > 0 || $noGroup > 0 ) - #if( $identifierTypes.size() > 0 ) + #if( $noIden > 0 ) @@ -83,7 +86,7 @@ - #if ( $noGroupAttributes && $noGroupAttributes.size() > 0) + #if ( $noGroupAttributes && $noOtherGroup > 0) #set( $mark = false ) #foreach($attribute in $noGroupAttributes ) @@ -195,7 +198,7 @@ $("#tabs").tabs("remove", 2); #end - #if( $identifierTypes.size() > 0 || $noGroupAttributes.size() > 0 || $attributeGroups.size() > 0 ) + #if( $noIden > 0 || $noOtherGroup > 0 || $noGroup > 0 ) $( "#tabs" ).tabs( "option", "selected", 1 ); #else $( "#tabs" ).tabs( "option", "selected", 2 );
$i18n.getString( "identifier" )
$i18n.getString( "Other details" )