=== 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 @@
+
+ $i18n.getString( "display_on_all_orgunits" )
+
+
+
+
$i18n.getString( "show_incident_date" )
=== 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 @@
$i18n.getString( "display_date_of_incident" ):
$i18n.getString( "generated_events_by_enrollment_date" ):
$i18n.getString( "skip_to_generate_overdue_events" ):
$i18n.getString( "only_enroll_once" ):
+ $i18n.getString( "display_on_all_orgunits" ):
$i18n.getString( "block_entry_form_after_completed" ):
$i18n.getString( "remind_completing_program_after_program_stage_completed" ):
$i18n.getString( "disable_registration_fields" ):
=== 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 @@
+
+ $i18n.getString( "display_on_all_orgunits" )
+
+
+
+
$i18n.getString( "show_incident_date" )
=== 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 @@
$i18n.getString( "value_type" )
- $i18n.getString('int')
- $i18n.getString('date')
+ $i18n.getString('int')
+ $i18n.getString('date')
=== 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 @@
$i18n.getString( 'load_existed_form' )
#end
#if(!$dataElements.isEmpty())
- $i18n.getString( 'insert_data_elements' )
+ $i18n.getString( 'insert_data_elements' )
#end
#if(!$programStages.isEmpty())
-
+ $i18n.getString( 'other_program_stage_data_element')
#end
$i18n.getString( 'insert_images' )
@@ -133,30 +133,9 @@