dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25373
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12574: Add barcode of person system identifier in custom registration form.
------------------------------------------------------------
revno: 12574
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2013-10-11 14:40:40 +0700
message:
Add barcode of person system identifier in custom registration form.
modified:
dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/updatePatientForm.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/updatePatientForm.vm'
--- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/updatePatientForm.vm 2013-09-23 03:15:40 +0000
+++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/updatePatientForm.vm 2013-10-11 07:40:40 +0000
@@ -41,9 +41,9 @@
addEventForPatientForm('patientForm');
if("$!patient.dobType" == 'A'){
- var i18n_please_select_relationshipType = '$encoder.jsEscape( $i18n.getString( "please_verify_birthday" ) , "'")';
+ var i18n_please_please_verify_birthday = '$encoder.jsEscape( $i18n.getString( "please_verify_birthday" ) , "'")';
jQuery('#patientForm [id=birthDate]').css("display","none");
- alert(i18n_please_select_relationshipType);
+ alert(i18n_please_please_verify_birthday);
}
else{
#if($!customRegistrationForm)
@@ -72,23 +72,22 @@
<input type="hidden" id="relationshipTypeId" name='relationshipTypeId' value="$!relationship.relationshipType.id"/>
<input type="hidden" id="id" name="id" value="$patient.id">
+
<table>
#if($!customRegistrationForm)
+ <div id='barcodePatient'></div>
#elseif($!systemIdentifier)
<tr>
<th colspan="2" class="heading-column">$i18n.getString( "system_identifier" )</th>
</tr>
<tr>
<td colspan='2'><br><div id='barcodePatient'></div></td>
- <script>
- $("#barcodePatient").barcode("$!systemIdentifier", "ean13",{barWidth:2, barHeight:30});
- </script>
</tr>
<tr>
<td> </td>
</tr>
#end
-
+
#parse( "/dhis-web-caseentry/patientForm.vm" )
<tr>
@@ -143,3 +142,14 @@
</tr>
</table>
</div>
+
+<script>
+ #foreach ( $idValue in $patient.identifiers )
+ #if( $!idValue.identifierType)
+ #else
+ systemIdentifier = "$idValue.identifier";
+ #end
+ #end
+ $("#barcodePatient").barcode(systemIdentifier, "ean13",{barWidth:2, barHeight:30});
+</script>
+