=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dashboard/dashboard-controller.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dashboard/dashboard-controller.js 2014-09-01 15:32:05 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dashboard/dashboard-controller.js 2014-09-08 09:08:39 +0000 @@ -24,7 +24,6 @@ $rootScope.selectedWidget = {title: 'current_selections', view: "components/selected/selected.html", show: false, expand: true}; $rootScope.profileWidget = {title: 'profile', view: "components/profile/profile.html", show: true, expand: true}; $rootScope.relationshipWidget = {title: 'relationships', view: "components/relationship/relationship.html", show: true, expand: true}; - $rootScope.schedulingMessagingWidget = {title: 'scheduling_messaging', view: "components/scheduling-messaging/scheduling-messaging.html", show: true, expand: true}; $rootScope.notesWidget = {title: 'notes', view: "components/notes/notes.html", show: true, expand: true}; $rootScope.biggerDashboardWidgets.push($rootScope.enrollmentWidget); @@ -33,7 +32,6 @@ $rootScope.smallerDashboardWidgets.push($rootScope.selectedWidget); $rootScope.smallerDashboardWidgets.push($rootScope.profileWidget); $rootScope.smallerDashboardWidgets.push($rootScope.relationshipWidget); - $rootScope.smallerDashboardWidgets.push($rootScope.schedulingMessagingWidget); $rootScope.smallerDashboardWidgets.push($rootScope.notesWidget); //selections === 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 2014-09-05 12:52:43 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry.html 2014-09-08 09:08:39 +0000 @@ -1,9 +1,10 @@
- {{dataentryWidget.title| translate}} + {{dataentryWidget.title| translate}} - | {{'create_new_event'| translate}} + | {{'create_new_event'| translate}} + === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/notes/notes.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/notes/notes.html 2014-09-07 08:30:29 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/notes/notes.html 2014-09-08 09:08:39 +0000 @@ -4,10 +4,9 @@ {{notesWidget.title| translate}} - - {{notesWidget.title| translate}} + {{notesWidget.title| translate}} - | {{'messaging'| translate}} + | {{'messaging'| translate}} === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/profile/profile.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/profile/profile.html 2014-09-05 12:52:43 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/profile/profile.html 2014-09-08 09:08:39 +0000 @@ -1,9 +1,11 @@
- {{profileWidget.title| translate}} - - | {{'edit'| translate}} + + {{profileWidget.title| translate}} + + | {{'edit'| translate}} + === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js 2014-08-29 12:39:37 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship-controller.js 2014-09-08 09:08:39 +0000 @@ -1,5 +1,6 @@ trackerCapture.controller('RelationshipController', function($scope, + $rootScope, $modal, $location, $route, @@ -9,6 +10,7 @@ TranslationService.translate(); + $rootScope.showAddRelationshipDiv = false; $scope.relationshipTypes = []; $scope.relationships = []; RelationshipFactory.getAll().then(function(rels){ @@ -26,27 +28,32 @@ $scope.selectedEnrollment = $scope.selections.enrollment; }); - $scope.showAddRelationship = function() { - var modalInstance = $modal.open({ - templateUrl: 'components/relationship/add-relationship.html', - controller: 'AddRelationshipController', - windowClass: 'modal-full-window', - resolve: { - relationshipTypes: function () { - return $scope.relationshipTypes; - }, - selections: function () { - return $scope.selections; - }, - selectedTei: function(){ - return $scope.selectedTei; + $scope.showAddRelationship = function() { + $rootScope.showAddRelationshipDiv = !$rootScope.showAddRelationshipDiv; + + console.log('It is me relationship: ', $rootScope.showAddRelationshipDiv); + if($rootScope.showAddRelationshipDiv){ + var modalInstance = $modal.open({ + templateUrl: 'components/relationship/add-relationship.html', + controller: 'AddRelationshipController', + windowClass: 'modal-full-window', + resolve: { + relationshipTypes: function () { + return $scope.relationshipTypes; + }, + selections: function () { + return $scope.selections; + }, + selectedTei: function(){ + return $scope.selectedTei; + } } - } - }); + }); - modalInstance.result.then(function (relationships) { - $scope.selectedTei.relationships = relationships; - }); + modalInstance.result.then(function (relationships) { + $scope.selectedTei.relationships = relationships; + }); + } }; $scope.showDashboard = function(rel){ @@ -66,6 +73,7 @@ //Controller for adding new relationship .controller('AddRelationshipController', function($scope, + $rootScope, CurrentSelection, OperatorFactory, AttributesFactory, @@ -305,7 +313,8 @@ }; $scope.close = function () { - $modalInstance.close($scope.selectedTei.relationships ? $scope.selectedTei.relationships : []); + $modalInstance.close($scope.selectedTei.relationships ? $scope.selectedTei.relationships : []); + $rootScope.showAddRelationshipDiv = !$rootScope.showAddRelationshipDiv; }; $scope.assignRelationship = function(relativeTei){ === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship.html 2014-09-05 12:52:43 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/relationship/relationship.html 2014-09-08 09:08:39 +0000 @@ -1,9 +1,11 @@