=== 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-10-06 04:54:55 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-10-06 13:46:23 +0000 @@ -355,7 +355,7 @@ specify_data_element = Please specify a data element Search = Search no_patient_enrolled_the_program = No person enrolled the program -complete_and_add_new_event = Complete and add new +complete_and_add_new_event = Complete && Add new no_compulsary_data_elements = No compulsory data elements single_event_with_registration = Single event with registration show_data_entry = Show data entry === 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-10-06 04:54:55 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/anonymousRegistration.vm 2012-10-06 13:46:23 +0000 @@ -3,7 +3,6 @@ datePickerInRange( 'startDate' , 'endDate' ); disableCriteriaDiv(); - var standardInterval = 3; var date = new Date(); var d = date.getDate(); var m = date.getMonth() - 3; @@ -13,7 +12,7 @@ }); -

$i18n.getString( "anonymous_events" ) #openHelp('single_event_without_registration')

+

$i18n.getString( "anonymous_events" ) #openHelp('single_event_without_registration')

@@ -103,13 +102,10 @@
#parse( "dhis-web-commons/loader/loader.vm" ) === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/defaultDataEntryForm.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/defaultDataEntryForm.vm 2012-08-24 10:09:45 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/defaultDataEntryForm.vm 2012-10-06 13:46:23 +0000 @@ -2,13 +2,15 @@ + #if( $!programStageInstance.programStage.program.displayProvidedOtherFacility=='true') + #end $i18n.getString( "data_element" ) $i18n.getString( "entry" ) - #if( $!programStageInstance.programStage.program.isRegistration() == 'true') + #if( $!programStageInstance.programStage.program.displayProvidedOtherFacility=='true') $i18n.getString( "provided_elsewhere" ) #end @@ -88,7 +90,7 @@ /> #end - #if( $!programStageInstance.programStage.program.isRegistration() == 'true' ) + #if( $!programStageInstance.programStage.program.displayProvidedOtherFacility=='true' ) #set( $id = $programStageDataElement.programStage.id + '_' + $programStageDataElement.dataElement.id + '_facility' ) #if( $programStageDataElement.allowProvidedElsewhere == 'true') === 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-10-06 04:54:55 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/anonymousRegistration.js 2012-10-06 13:46:23 +0000 @@ -3,9 +3,10 @@ { hideById('dataEntryInfor'); hideById('listDiv'); + showById('mainLinkLbl'); jQuery.getJSON( "anonymousPrograms.action",{}, - function( json ) + function( json ) { clearListById('searchObjectId'); clearListById('compulsoryDE'); @@ -301,10 +302,11 @@ $( '#dataEntryFormDiv' ).load( "dataentryform.action", { programStageInstanceId: programStageInstanceId - },function( ) + },function() { - var programName = jQuery('#programId option:selected').text(); - programName += ' - ' + i18n_report_date + ' : ' + jQuery('#incidentDate').val(); + jQuery('#inputCriteriaDiv').remove(); + hideById('mainLinkLbl'); + var programName = jQuery('#programId option:selected').text(); var programStageId = jQuery('#programId option:selected').attr('psid'); jQuery('.stage-object-selected').attr('psid',programStageId); setInnerHTML('programName', programName ); @@ -315,7 +317,6 @@ else{ disableCompletedButton( false ); } - hideById('loaderDiv'); showById('dataEntryInfor'); showById('entryFormContainer'); @@ -324,7 +325,8 @@ function backEventList() { - hideById('dataEntryInfor'); + hideById('dataEntryInfor'); + showById('mainLinkLbl'); showById('selectDiv'); showById('searchDiv'); showById('listDiv'); === 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-10-05 08:56:56 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/commons.js 2012-10-06 13:46:23 +0000 @@ -629,13 +629,11 @@ { if(disabled){ disable('completeBtn'); - disable('completeAndAddNewBtn'); enable('uncompleteBtn'); enable('uncompleteAndAddNewBtn'); } else{ enable('completeBtn'); - enable('completeAndAddNewBtn'); disable('uncompleteBtn'); disable('uncompleteAndAddNewBtn'); } === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2012-10-05 07:47:52 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/entry.js 2012-10-06 13:46:23 +0000 @@ -444,7 +444,7 @@ } } -function doComplete() +function doComplete( isCreateEvent ) { var flag = false; jQuery("#dataEntryFormDiv input[name='entryfield'],select[name='entryselect']").each(function(){ @@ -498,9 +498,12 @@ jQuery('#completedList' ).append(''); } - selection.enable(); hideLoader(); hideById('contentDiv'); + + if( isCreateEvent ){ + showAddEventForm(); + } }); } } === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties 2012-10-06 05:12:17 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties 2012-10-06 13:46:23 +0000 @@ -279,7 +279,7 @@ orgunit_name = Organisation unit name days_since_due_date = Days since due date scheduling = Scheduling -schedule_message = Schedule sending message +schedule_message = Schedule message intro_schedule_message = At midnight, the system checks if any person\u2019s events are incomplete/scheduled in future and have a relevant message defined before, create messages for each event based on the template message of each program stage and save them. Every day, at a system configurable time, the messages are sent out on SMS. schedule = Schedule start = Start === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramForm.vm 2012-10-03 04:54:22 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramForm.vm 2012-10-06 13:46:23 +0000 @@ -38,13 +38,13 @@ - + - + @@ -54,7 +54,7 @@ - +