← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12892: Disbled Report Date to use in Add program stage form

 

------------------------------------------------------------
revno: 12892
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-11-07 09:34:51 +0700
message:
  Disbled Report Date to use in Add program stage form
modified:
  dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramStageForm.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/webapp/dhis-web-maintenance-patient/addProgramStageForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramStageForm.vm	2013-10-17 06:06:44 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-patient/src/main/webapp/dhis-web-maintenance-patient/addProgramStageForm.vm	2013-11-07 02:34:51 +0000
@@ -86,7 +86,8 @@
 		<tr>
 			<td><label>$i18n.getString( "open_data_entry_form_after_enrolment" ) <em title="$i18n.getString( 'required' )" class="required">*</em></label></td>
 			<td><input type="checkbox" id="openAfterEnrollment" name="openAfterEnrollment" value='true' 
-				onchange="openAfterEnrollmentOnchange();" >
+				onchange="openAfterEnrollmentOnchange();" 
+				#if($openAfterEnrollment!='') disabled #end>
 			</td>
 			<td></td>
 		</tr>
@@ -94,7 +95,7 @@
 		<tr>
 			<td><label>$i18n.getString( "report_date_to_use" )</label></td>
 			<td>
-				<select id="reportDateToUse" name="reportDateToUse" class="{validate:{required:true}}" >
+				<select id="reportDateToUse" name="reportDateToUse" class="{validate:{required:true}}" disabled>
 					<option value=''>[$i18n.getString('please_select')]</option>
 					<option value='registrationDate'>$i18n.getString("registration_date")</option>
 					<option value='dateOfIncident'>$i18n.getString("date_of_incident")</option>