=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-11-06 08:39:16 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-11-08 06:20:53 +0000 @@ -469,4 +469,5 @@ events = events left_value = Left value right_value = Right value -validation_rule = Validation rule \ No newline at end of file +validation_rule = Validation rule +add_filter = Add filter \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm 2012-11-08 04:13:48 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm 2012-11-08 06:20:53 +0000 @@ -22,16 +22,16 @@
- +
- + - - - - + + + + + + + + + @@ -81,7 +92,7 @@ @@ -156,8 +167,8 @@ var i18n_yes = '$encoder.jsEscape( $i18n.getString( "yes" ) , "'")'; var i18n_no = '$encoder.jsEscape( $i18n.getString( "no" ) , "'")'; var i18n_specify_search_criteria = '$encoder.jsEscape( $i18n.getString( "specify_search_criteria" ) , "'")'; - - var i18n_data_entry = '$encoder.jsEscape( $i18n.getString( "data_entry" ) , "'")'; + var i18n_add_filter = '$encoder.jsEscape( $i18n.getString( "add_filter" ) , "'")'; + var i18n_clear_filter = '$encoder.jsEscape( $i18n.getString( "clear_filter" ) , "'")'; isAjax = true; contentDiv = ''; === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js 2012-11-08 04:13:48 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js 2012-11-08 06:20:53 +0000 @@ -198,7 +198,6 @@ var input = jQuery( item ); params += '&searchingValues=de_' + input.val() + '_false_'; }); - hideById('advanced-search'); } else{ var value = ''; @@ -430,3 +429,19 @@ }); } } + +function filterDivToogle() +{ + jQuery('#advanced-search').toggle(); + var isShown = jQuery('#advancedBtn').attr("isShown"); + if( isShown=="false" ){ + jQuery('#advancedBtn').val(i18n_clear_filter); + jQuery('#advancedBtn').attr("isShown", true ); + } + else + { + jQuery('#advancedBtn').val(i18n_add_filter); + jQuery('#advancedBtn').attr("isShown", false); + searchEvents( true ); + } +} === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css 2012-10-22 06:00:03 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/style/style.css 2012-11-08 06:20:53 +0000 @@ -101,18 +101,24 @@ background-color: #FFCFCF } +.criteriaDiv +{ + position: relative; + border: 1px solid #a4d2a3; + background-color: #d5efd5; + padding: 5px; + margin-bottom: 10px; + border-radius: 3px; + width:450px; +} + #advanced-search { position: relative; border: 1px solid #a4d2a3; - background-color: #d5efd5; - padding-top: 10px; - padding-right: 20px; - padding-bottom: 5px; - padding-left: 20px; - margin-bottom: 15px; + padding: 5px; + margin-bottom: 10px; border-radius: 3px; - width:750px; } /*----------------------------------------------------------------------------*/
$i18n.getString("program") * +
+
+
+ + - - +
+ +
- +