dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #23471
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11428: Fix bug - Don't remove send-to fields when to click Remove Reminder link in Program template mess...
------------------------------------------------------------
revno: 11428
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-07-18 10:16:06 +0700
message:
Fix bug - Don't remove send-to fields when to click Remove Reminder link in Program template message form.
modified:
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/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/programStage.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientRegistrationForm.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-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-07-16 04:31:27 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/resources/org/hisp/dhis/patient/i18n_module.properties 2013-07-18 03:16:06 +0000
@@ -443,4 +443,6 @@
create_default_registration_form = Create default registration form
minus_with_dataelement = Data Element Date Diff
use_birth_date_as_incident_date = Use birthdate as incident date
-use_birth_date_as_enrollment_date = Use birthdate as enrollment date
\ No newline at end of file
+use_birth_date_as_enrollment_date = Use birthdate as enrollment date
+default_form_name = Default form name
+custom_form_name = Custom form name
\ No newline at end of file
=== 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-07-16 04:31:27 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/program.js 2013-07-18 03:16:06 +0000
@@ -291,7 +291,7 @@
+ '<td><label>' + i18n_days_before_after_comparison_date + '</label></td>'
+ '<td><input type="text" id="daysAllowedSendMessage' + rowId + '" name="daysAllowedSendMessage' + rowId + '" class="daysAllowedSendMessage {validate:{required:true,number:true}}"/></td>'
+ '</tr>'
- + '<tr>'
+ + '<tr name="tr' + rowId + '">'
+ '<td><label>' + i18n_send_to + '</label></td>'
+ '<td>'
+ '<select id="sendTo' + rowId + '" name="sendTo' + rowId + '" class="sendTo" >'
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js 2013-07-10 08:02:32 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/javascript/programStage.js 2013-07-18 03:16:06 +0000
@@ -290,7 +290,7 @@
+ '<td><label>' + i18n_days_before_after_due_date + '</label></td>'
+ '<td><input type="text" id="daysAllowedSendMessage' + rowId + '" name="daysAllowedSendMessage' + rowId + '" class="daysAllowedSendMessage {validate:{required:true,number:true}}"/></td>'
+ '</tr>'
- + '<tr>'
+ + '<tr name="tr' + rowId + '">'
+ '<td><label>' + i18n_send_to + '</label></td>'
+ '<td>'
+ '<select id="sendTo' + rowId + '" name="sendTo' + rowId + '" class="sendTo" >'
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientRegistrationForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientRegistrationForm.vm 2013-07-12 06:26:56 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/patientRegistrationForm.vm 2013-07-18 03:16:06 +0000
@@ -37,10 +37,18 @@
#end
</td>
<td>
- $!encoder.htmlEncode( $registrationForm.name )
+ #if($!registrationForm.name)
+ $!encoder.htmlEncode( $registrationForm.name )
+ #else
+ [$i18n.getString('none')]
+ #end
</td>
<td>
- $!encoder.htmlEncode( $registrationForm.dataEntryForm.name )
+ #if($!registrationForm.dataEntryForm)
+ $!encoder.htmlEncode( $registrationForm.dataEntryForm.name )
+ #else
+ [$i18n.getString('none')]
+ #end
</td>
<td style="text-align:center">
<a href="javascript:showDefaultRegistrationForm('$!registrationForm.program.id');" title="$i18n.getString( 'edit' )"><img src='../images/edit.png' alt="$i18n.getString( 'edit' )"></a>