=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/resources/org/hisp/dhis/de/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/resources/org/hisp/dhis/de/i18n_module.properties 2011-06-26 19:19:35 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/resources/org/hisp/dhis/de/i18n_module.properties 2011-07-28 07:34:34 +0000 @@ -69,7 +69,7 @@ expression = Expression successful_validation = The data entry screen successfully passed validation unsuccessful_validation = The data entry screen has validation errors, please correct these before proceeding -the_following_values_violates_rules = The following values violates validation rules +the_following_values_violate_rules = The following values violate validation rules the_following_values_are_outliers = The following values are considered as outliers (min-max or std dev) value = Value operator = Operator === modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/resources/struts.xml' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/resources/struts.xml 2011-07-28 07:15:09 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/resources/struts.xml 2011-07-28 07:34:34 +0000 @@ -76,9 +76,8 @@ - /popup.vm - /popup.vm - /dhis-web-dataentry/validationResult.vm + /dhis-web-dataentry/validationResult.vm + /dhis-web-dataentry/validationResult.vm === modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/history.vm' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/history.vm 2011-07-28 07:15:09 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/history.vm 2011-07-28 07:34:34 +0000 @@ -22,7 +22,7 @@ -
+

$i18n.getString( "dataelement_comment" )


=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2011-07-28 07:15:09 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/javascript/form.js 2011-07-28 07:34:34 +0000 @@ -501,9 +501,7 @@ } else { - var url = 'validate.action?periodId=' + periodId + '&dataSetId=' + dataSetId; - - window.open( url, '_blank', 'width=800, height=400, scrollbars=yes, resizable=yes' ); + validate(); } } @@ -535,14 +533,26 @@ // Validation // ----------------------------------------------------------------------------- +function displayValidationDialog() +{ + $( '#validationDiv' ).dialog( { + modal: true, + title: 'Validation', + width: 800, + height: 400 + } ); +} + function validate() { var periodId = $( '#selectedPeriodId' ).val(); var dataSetId = $( '#selectedDataSetId' ).val(); - - var url = 'validate.action?periodId=' + periodId + '&dataSetId=' + dataSetId; - window.open( url, '_blank', 'width=800, height=400, scrollbars=yes, resizable=yes' ); + $( '#validationDiv' ).load( 'validate.action', { + periodId: periodId, + dataSetId: dataSetId }, + displayValidationDialog + ); } // ----------------------------------------------------------------------------- === modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/select.vm' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/select.vm 2011-07-28 07:15:09 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/select.vm 2011-07-28 07:34:34 +0000 @@ -111,3 +111,5 @@
+ +
=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/validationResult.vm' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/validationResult.vm 2011-03-17 11:01:05 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/validationResult.vm 2011-07-28 07:34:34 +0000 @@ -1,13 +1,13 @@

$encoder.htmlEncode( $i18n.getString( "validation_result" ) )

#if( $results.size() == 0 && $dataValues.size() == 0 ) -

$encoder.htmlEncode( $i18n.getString( "successful_validation" ) )

+

$encoder.htmlEncode( $i18n.getString( "successful_validation" ) )

#else -

$encoder.htmlEncode( $i18n.getString( "unsuccessful_validation" ) )

+

$encoder.htmlEncode( $i18n.getString( "unsuccessful_validation" ) )

#end #if( $results.size() > 0) -

$encoder.htmlEncode( $i18n.getString( "the_following_values_violates_rules" ) )

+

$encoder.htmlEncode( $i18n.getString( "the_following_values_violate_rules" ) )

@@ -42,7 +42,7 @@ #end #if( $dataValues.size() > 0 ) -

$encoder.htmlEncode( $i18n.getString( "the_following_values_are_outliers" ) )

+

$encoder.htmlEncode( $i18n.getString( "the_following_values_are_outliers" ) )

$encoder.htmlEncode( $i18n.getString( "validation_rule" ) )
@@ -66,5 +66,3 @@ #end
$i18n.getString( "data_element" )
#end - -