=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js 2012-03-27 09:40:11 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/patient.js 2012-03-27 10:33:13 +0000 @@ -815,11 +815,6 @@ showById('enrollBtn'); } -function toogleDiv( div ) -{ - jQuery( "#" + div ).slideToggle( "fast" ); -} - function savePatientIdentifier( identifierTypeId, field ) { field.blur(); @@ -1010,6 +1005,12 @@ jQuery('#dataRecordingSelectDiv [id=patientInfoDiv]').hide(); jQuery('#dataRecordingSelectDiv [id=backBtnFromEntry]').hide(); showById('dataRecordingSelectDiv'); + var programId = jQuery('#programEnrollmentSelectDiv [id=programId] option:selected').val(); + var programName = jQuery('#programEnrollmentSelectDiv [id=programId] option:selected').text(); + + $('#dataRecordingSelectDiv [id=programId]').find('option').remove().end().append('').val('whatever'); + + loadProgramStages(); hideLoader(); hideById('contentDiv'); }); === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm 2012-03-27 09:40:11 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/patientRegistrationList.vm 2012-03-27 10:33:13 +0000 @@ -95,7 +95,6 @@ $i18n.getString( "program_unenrollment_management" ) $i18n.getString( "edit_profile" ) $i18n.getString( "manage_relationship" ) - $i18n.getString( "add_dependent" ) $i18n.getString( "remove" ) $i18n.getString( "patient_details_and_history" ) === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm 2012-03-27 07:20:28 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/programEnrollmentForm.vm 2012-03-27 10:33:13 +0000 @@ -1,159 +1,178 @@ -
-
- -#if( $identifierTypes.size() > 0 || $noGroupAttributes.size() > 0 || $attributeGroups.size() > 0 ) -

$i18n.getString('patient_identifier_and_attributes')

- - - - - #if( $identifierTypes.size() > 0 ) - - - - #end - - #set( $tabIndex = 1 ) - #set( $mark = false ) - #foreach ($identifierType in $identifierTypes) - #set( $identifier = $identiferMap.get( $identifierType.id ) ) - - - - - #set( $tabIndex = $tabIndex + 1 ) - #set( $mark = !$mark ) - #end - - - #set( $mark = false ) - #foreach ($attributeGroup in $attributeGroups ) - - - #foreach($attribute in $attributeGroup.attributes) - #if( $!attribute.program ) - #set( $attributeValue = $!patientAttributeValueMap.get( $attribute.id ) ) - - - - - #end - #set( $tabIndex = $tabIndex + 1 ) - #set( $mark = !$mark ) - #end - #end - - - - - #if ( $noGroupAttributes && $noGroupAttributes.size() > 0) - - #set( $mark = false ) - #foreach($attribute in $noGroupAttributes ) - #if( $attribute.program ) - #set( $attributeValue = $!patientAttributeValueMap.get( $attribute.id ) ) - - - - - #end - #set( $tabIndex = $tabIndex + 1 ) - #set( $mark = !$mark ) - #end - #end -
$i18n.getString( "patient_identifier" )
-
 
$attributeGroup.name
- #if( $attribute.valueType == "YES/NO" ) - - #elseif( $attribute.valueType == "DATE" ) - - - #elseif( $attribute.valueType == "COMBO" ) - - #else - - #end -
 
$i18n.getString( "Other details" )
- #if( $attribute.valueType == "YES/NO" ) - - #elseif( $attribute.valueType == "DATE" ) - - - #elseif( $attribute.valueType == "COMBO" ) - - #else - - #end -
-#end - - - -#if( $programStageInstances.size() > 0 ) -

$i18n.getString('program_stage')

- - - - - - - - - - - #set( $rowCount = 0 ) - #set( $mark = false ) - #set( $tabIndex = 1 ) - #foreach( $programStageInstance in $programStageInstances ) - #set( $rowCount = $rowCount + 1 ) - - ##rowCount - - ##stage name - - - ##entry - #set( $duedateId = "value_"+$programStageInstance.id+"_date" ) - - - #set( $tabIndex = $tabIndex + 1 ) - #set( $mark = !$mark ) - #end - -#end - -
+ +
+ + + + + +
+ +
+ + #if( $identifierTypes.size() > 0 || $noGroupAttributes.size() > 0 || $attributeGroups.size() > 0 ) + + + + #if( $identifierTypes.size() > 0 ) + + + + #end + + #set( $tabIndex = 1 ) + #set( $mark = false ) + #foreach ($identifierType in $identifierTypes) + #set( $identifier = $identiferMap.get( $identifierType.id ) ) + + + + + #set( $tabIndex = $tabIndex + 1 ) + #set( $mark = !$mark ) + #end + + + #set( $mark = false ) + #foreach ($attributeGroup in $attributeGroups ) + + + #foreach($attribute in $attributeGroup.attributes) + #if( $!attribute.program ) + #set( $attributeValue = $!patientAttributeValueMap.get( $attribute.id ) ) + + + + + #end + #set( $tabIndex = $tabIndex + 1 ) + #set( $mark = !$mark ) + #end + #end + + + + + #if ( $noGroupAttributes && $noGroupAttributes.size() > 0) + + #set( $mark = false ) + #foreach($attribute in $noGroupAttributes ) + #if( $attribute.program ) + #set( $attributeValue = $!patientAttributeValueMap.get( $attribute.id ) ) + + + + + #end + #set( $tabIndex = $tabIndex + 1 ) + #set( $mark = !$mark ) + #end + #end +
$i18n.getString( "patient_identifier" )
+
 
$attributeGroup.name
+ #if( $attribute.valueType == "YES/NO" ) + + #elseif( $attribute.valueType == "DATE" ) + + + #elseif( $attribute.valueType == "COMBO" ) + + #else + + #end +
 
$i18n.getString( "Other details" )
+ #if( $attribute.valueType == "YES/NO" ) + + #elseif( $attribute.valueType == "DATE" ) + + + #elseif( $attribute.valueType == "COMBO" ) + + #else + + #end +
+ #end +
+
+ +
+ + +
+ + + +
+ + #if( $programStageInstances.size() > 0 ) + + + + + + + + + + + #set( $rowCount = 0 ) + #set( $mark = false ) + #set( $tabIndex = 1 ) + #foreach( $programStageInstance in $programStageInstances ) + #set( $rowCount = $rowCount + 1 ) + + ##rowCount + + ##stage name + + + ##entry + #set( $duedateId = "value_"+$programStageInstance.id+"_date" ) + + + #set( $tabIndex = $tabIndex + 1 ) + #set( $mark = !$mark ) + #end +
$i18n.getString( "nr" )$i18n.getString( "program_stage" )$i18n.getString( "due_date" )
$rowCount + + $encoder.htmlEncode( $programStageInstance.programStage.name ) + + + + +
+ #end + +
+