=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js 2015-09-03 14:55:07 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/controllers.js 2015-09-03 15:33:49 +0000 @@ -168,10 +168,10 @@ $scope.filterTypes = {}; $scope.newDhis2Event = {}; - $scope.eventGridColumns.push({name: 'form_id', id: 'uid', valueType: 'string', compulsory: false, showFilter: false, show: false}); + $scope.eventGridColumns.push({name: 'form_id', id: 'uid', valueType: 'TEXT', compulsory: false, filterWithRange: false, showFilter: false, show: false}); $scope.filterTypes['uid'] = 'TEXT'; - $scope.eventGridColumns.push({name: $scope.selectedProgramStage.reportDateDescription ? $scope.selectedProgramStage.reportDateDescription : 'incident_date', id: 'event_date', type: 'date', compulsory: false, showFilter: false, show: true}); + $scope.eventGridColumns.push({name: $scope.selectedProgramStage.reportDateDescription ? $scope.selectedProgramStage.reportDateDescription : 'incident_date', id: 'event_date', valueType: 'DATE', filterWithRange: true, compulsory: false, showFilter: false, show: true}); $scope.filterTypes['event_date'] = 'DATE'; $scope.filterText['event_date']= {}; @@ -289,11 +289,11 @@ } if($scope.noteExists && !GridColumnService.columnExists($scope.eventGridColumns, 'comment')){ - $scope.eventGridColumns.push({name: 'comment', id: 'comment', type: 'string', compulsory: false, showFilter: false, show: true}); + $scope.eventGridColumns.push({name: 'comment', id: 'comment', type: 'TEXT', filterWithRange: false, compulsory: false, showFilter: false, show: true}); } if(!$scope.sortHeader.id){ - $scope.sortEventGrid({name: $scope.selectedProgramStage.reportDateDescription ? $scope.selectedProgramStage.reportDateDescription : 'incident_date', id: 'event_date', type: 'date', compulsory: false, showFilter: false, show: true}); + $scope.sortEventGrid({name: $scope.selectedProgramStage.reportDateDescription ? $scope.selectedProgramStage.reportDateDescription : 'incident_date', id: 'event_date', type: 'DATE', compulsory: false, showFilter: false, show: true}); } } @@ -399,8 +399,8 @@ if($scope.formHasUnsavedData()){ var modalOptions = { - closeButtonText: 'cancel', - actionButtonText: 'proceed', + closeButtonText: 'no', + actionButtonText: 'yes', headerText: 'warning', bodyText: 'unsaved_data_exists_proceed' }; === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/eventList.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/eventList.html 2015-09-03 14:55:07 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/eventList.html 2015-09-03 15:33:49 +0000 @@ -54,15 +54,15 @@ - + - + - - + + @@ -83,13 +83,13 @@ - + - + - + @@ -115,7 +115,7 @@ ng-click="showEventList(dhis2Event)" ng-show="currentEvent.event !== dhis2Event.event && eventGridColumn.id !== 'comment'"> - + {{noLabel}} {{yesLabel}} @@ -129,8 +129,7 @@ - - +
-
- -
-
-
- -
-
- +
+ -
+ class="form-control"/>
-
+
-
- -
-
+
+ +
+
+ +
+
+
+ +