← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21777: Fixed the issue that due date is absent in the print form.

 

------------------------------------------------------------
revno: 21777
committer: jijukjose <jijukjose@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2016-01-18 15:20:31 +0100
message:
  Fixed the issue that due date is absent in the print form.
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/event-details.html


--
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-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/event-details.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/event-details.html	2015-12-29 10:58:29 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/event-details.html	2016-01-18 14:20:31 +0000
@@ -27,14 +27,18 @@
         <span ng-if="!currentEvent.eventDate && currentEvent.status !== 'SKIPPED' && !selectedEntity.inactive && selectedEnrollment.status === 'ACTIVE'">
             <a href ng-click="enableRescheduling()" title="{{ schedulingEnabled ? 'disable_rescheduling' : 'enable_rescheduling' | translate}}"><span class="text-primary bold">{{'reschedule_duedate'| translate}}</span></a>                        
         </span>                    
-        <input type="text" 
+        <input type="text"
                placeholder="{{dhis2CalendarFormat.keyDateFormat}}"
-               class="form-control"
+               class="form-control hideInPrint"
                ng-class="{'input-success': dueDateSaved}"
                d2-date                                
                ng-model="currentEvent.dueDate"
                blur-or-change="saveDueDate()" 
                ng-disabled="currentEvent.eventDate || !schedulingEnabled || currentEvent.enrollmentStatus !== 'ACTIVE' || currentEvent.editingNotAllowed"/>
+        <input type="text"
+               class="form-control not-for-screen"
+               ng-class="{'input-success': dueDateSaved}"
+               value={{currentEvent.dueDate}}>
         <span ng-if="invalidDueDate === currentEvent.event" class="error">{{'date_required'| translate}}</span>
     </div>
 </div>