← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19649: tracker-capture: disable future dates for event report date

 

------------------------------------------------------------
revno: 19649
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-07-14 20:32:32 +0200
message:
  tracker-capture: disable future dates for event report date
modified:
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry.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/dataentry.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry.html	2015-06-18 15:52:09 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry.html	2015-07-14 18:32:32 +0000
@@ -88,6 +88,8 @@
                                class="form-control" 
                                ng-class="{'input-success': eventDateSaved}"
                                d2-date 
+                               max-date="0"
+                               min-date=""
                                ng-model="currentEvent.eventDate"
                                ng-disabled="currentEvent.status === 'SKIPPED' || currentEvent.enrollmentStatus !== 'ACTIVE' || currentEvent.editingNotAllowed"    
                                ng-required="true"
@@ -105,7 +107,7 @@
                                placeholder="{{dhis2CalendarFormat.keyDateFormat}}"
                                class="form-control"
                                ng-class="{'input-success': dueDateSaved}"
-                               d2-date 
+                               d2-date                                
                                ng-model="currentEvent.dueDate"
                                blur-or-change="saveDueDate()" 
                                ng-disabled="currentEvent.eventDate || !schedulingEnabled || currentEvent.enrollmentStatus !== 'ACTIVE' || currentEvent.editingNotAllowed"/>