=== 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 2013-05-15 09:14:57 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties 2013-05-16 06:09:31 +0000 @@ -132,7 +132,7 @@ specify_dataelememt=Please specify a data element processing=Processing done=Done -dataelement_of_orther_program_stage=Data element of other program stage +other_program_stage_data_element=Other program stage data element load_existed_form=Load existing form design_dataentry_form=Design data entry form dataelement_is_inserted=This data element is inserted in form === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramForm.vm 2013-05-15 02:13:36 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramForm.vm 2013-05-16 06:09:31 +0000 @@ -153,6 +153,12 @@ + + + + + + === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/program.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/program.js 2013-04-18 06:45:36 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/program.js 2013-05-16 06:09:31 +0000 @@ -35,6 +35,9 @@ var onlyEnrollOnce = ( json.program.onlyEnrollOnce == 'true') ? i18n_yes : i18n_no; setInnerHTML( 'onlyEnrollOnceField', onlyEnrollOnce ); + var displayOnAllOrgunit= ( json.program.displayOnAllOrgunit == 'true') ? i18n_yes : i18n_no; + setInnerHTML( 'displayOnAllOrgunitField', displayOnAllOrgunit ); + var remindCompleted = ( json.program.remindCompleted == 'true') ? i18n_yes : i18n_no; setInnerHTML( 'remindCompletedField', remindCompleted ); === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewDataEntryForm.js' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewDataEntryForm.js 2013-04-28 08:54:29 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/viewDataEntryForm.js 2013-05-16 06:09:31 +0000 @@ -138,7 +138,6 @@ return result; } - function checkExisted( id ) { var result = false; @@ -315,7 +314,7 @@ jQuery.postJSON("setAutoSaveDataEntrySetting.action", {autoSave:_autoSave}, function(json) { autoSave = _autoSave; if (_autoSave) { - window.setTimeout( "validateDataEntryFormTimeout( false );", 600 ); + window.setTimeout( "validateDataEntryFormTimeout( false );", 60000 ); } else{ window.clearTimeout(timeOut); @@ -331,6 +330,12 @@ function validateDataEntryForm() { + if( getFieldValue('name').length==0 ) + { + setHeaderDelayMessage( i18n_name_exists ); + return; + } + $.post( 'validateDataEntryForm.action', { name: getFieldValue('name'), === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programList.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programList.vm 2013-05-15 02:13:36 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/programList.vm 2013-05-16 06:09:31 +0000 @@ -91,6 +91,7 @@





+





=== 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 2013-05-15 02:13:36 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramForm.vm 2013-05-16 06:09:31 +0000 @@ -157,6 +157,12 @@ + + + + + + === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramIndicator.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramIndicator.vm 2013-04-17 09:20:46 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/updateProgramIndicator.vm 2013-05-16 06:09:31 +0000 @@ -47,8 +47,8 @@ === modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/viewDataEntryForm.vm' --- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/viewDataEntryForm.vm 2013-04-05 07:46:29 +0000 +++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/viewDataEntryForm.vm 2013-05-16 06:09:31 +0000 @@ -111,10 +111,10 @@ #end #if(!$dataElements.isEmpty()) - + #end #if(!$programStages.isEmpty()) - + #end @@ -133,30 +133,9 @@
- - - - - - - - - - - - + @@ -177,6 +156,29 @@ + + + @@ -190,12 +192,10 @@
$i18n.getString("display_name") - -
$i18n.getString("sort_by") - $i18n.getString("name") - $i18n.getString("code") -
- $i18n.getString( "dataelement" )
-
- + $i18n.getString( "dataelement" ) +
+ + + + + + + + + +
$i18n.getString("display_name") + +
$i18n.getString("sort_by") + $i18n.getString("name") + $i18n.getString("code") +
+
- + - - - - - - - - - - - - + @@ -238,6 +216,29 @@ + + + @@ -274,4 +275,5 @@
- $i18n.getString( "program_stage" ) - $i18n.getString( "program_stage" )
$i18n.getString("display_name") - -
$i18n.getString("sort_by") - -
- $i18n.getString( "dataelement" ) -
- + $i18n.getString( "dataelement" ) + +
+ + + + + + + + + +
$i18n.getString("display_name") + +
$i18n.getString("sort_by") + $i18n.getString("name") + $i18n.getString("code") +
+