=== 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-12-21 04:01:53 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2013-01-03 09:04:36 +0000 @@ -36,7 +36,6 @@ village=Village registration_date=Date of registration full_name=Full name -entry=Entry available_data_elements=Available data elements selected_data_elements=Selected data elements nr=Number @@ -487,4 +486,5 @@ percent_overdue = Percent Overdue scheduled = Scheduled start = Start -total_persons_enrolled=Total number of persons enrolled \ No newline at end of file +total_persons_enrolled=Total number of persons enrolled +value = Value \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-12-21 13:42:06 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2013-01-03 09:04:36 +0000 @@ -1774,4 +1774,48 @@ else{ loadPatientList(); } +} + +// ---------------------------------------------- +// Data entry section +// ---------------------------------------------- + +function filterInSection( $this ) +{ + var $tbody = $this.parent().parent().parent().parent().parent().find("tbody"); + var $trTarget = $tbody.find("tr"); + + if ( $this.val() == '' ) + { + $trTarget.show(); + } + else + { + var $trTargetChildren = $trTarget.find( 'td:first-child' ); + + $trTargetChildren.each( function( idx, item ) + { + if( $( item ).find( 'span' ).length != 0 ) + { + var text1 = $this.val().toUpperCase(); + var text2 = $( item ).find( 'span' ).html().toUpperCase(); + + if ( text2.indexOf( text1 ) >= 0 ) + { + $( item ).parent().show(); + } + else + { + $( item ).parent().hide(); + } + } + } ); + } + + refreshZebraStripes( $tbody ); +} + +function refreshZebraStripes( $tbody ) +{ + $tbody.find( 'tr:visible:odd' ).find( 'td:first-child' ).removeClass( 'reg' ).addClass( 'reg' ); } \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/sectionDataEntryForm.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/sectionDataEntryForm.vm 2012-12-10 12:54:54 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/sectionDataEntryForm.vm 2013-01-03 09:04:36 +0000 @@ -16,14 +16,18 @@