=== modified file 'dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/i18n/en.json' --- dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/i18n/en.json 2014-05-12 14:08:02 +0000 +++ dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/i18n/en.json 2014-05-12 15:31:40 +0000 @@ -62,7 +62,10 @@ "not_like": "NOT LIKE", "move_to_selected": "Move to selected", "move_all_to_selected": "Move all to selected", - "more": "More", + "save_and_add_new": "Save and add new", + "save_and_go_back": "Save and go back", + "go_back": "Go back", + "more": "More", "profile": "Profile", "applications": "Apps", "more_applications": "More apps", === modified file 'dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.js' --- dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.js 2014-05-12 14:08:02 +0000 +++ dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/scripts/controllers.js 2014-05-12 15:31:40 +0000 @@ -29,11 +29,17 @@ $scope.rowsPerPage = 50; $scope.currentPage = Paginator.getPage() + 1; + //EntityList + $scope.showTrackedEntityDiv = false; + //Searching $scope.showSearchDiv = false; $scope.searchField = {title: 'search', isOpen: false}; $scope.attributes = []; + //Registration + $scope.showRegistrationDiv = false; + //watch for selection of org unit from tree $scope.$watch('selectedOrgUnit', function() { @@ -85,7 +91,10 @@ //get events for the selected program (and org unit) $scope.loadTrackedEntities = function(){ + $scope.showTrackedEntityDiv = !$scope.showTrackedEntityDiv; + $scope.showSearchDiv = false; + $scope.showRegistrationDiv = false; $scope.trackedEntityList = null; @@ -111,11 +120,15 @@ }; $scope.showRegistration = function(){ - + $scope.showRegistrationDiv = !$scope.showRegistrationDiv; + $scope.showTrackedEntityDiv = false; + $scope.showSearchDiv = false; }; $scope.showSearch = function(){ $scope.showSearchDiv = !$scope.showSearchDiv; + $scope.showRegistrationDiv = false; + $scope.showTrackedEntityDiv = false; }; $scope.hideSearch = function(){ @@ -314,10 +327,29 @@ $scope.test = function(){ console.log('the mode is: ', $scope.ouMode); - }; - + }; }) +.controller('RegistrationController', + function($scope, + AttributesFactory, + TranslationService) { + + //do translation of the registration page + TranslationService.translate(); + + $scope.attributes = AttributesFactory.getAll(); + + $scope.getProgramAttributes = function(program){ + if(program){ + $scope.attributes = AttributesFactory.getByProgram(program); + } + else{ + $scope.attributes = AttributesFactory.getAll(); + } + }; + +}) //Controller for dashboard .controller('DashboardController', function($rootScope, === modified file 'dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/styles/style.css' --- dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2014-05-12 14:26:25 +0000 +++ dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2014-05-12 15:31:40 +0000 @@ -370,6 +370,7 @@ border: 1px solid #c2c2c2; border-radius: 5px; padding: 5px 10px; + margin-top: 20px; margin-bottom: 20px; } @@ -563,6 +564,11 @@ margin-bottom: 20px; } +.registration-container{ + margin-top: 20px; + margin-bottom: 10px; +} + /*----------------------------------------------------------------------------*/ /* Bootstrap modal style /*----------------------------------------------------------------------------*/ === modified file 'dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/home.html' --- dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/home.html 2014-05-08 09:34:02 +0000 +++ dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/home.html 2014-05-12 15:31:40 +0000 @@ -22,26 +22,48 @@
- + - +
- - - + + +
-
+ + +
- - + + + +
+
+
+
+
+ + -
+
=== added file 'dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/registration.html' --- dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/registration.html 1970-01-01 00:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/registration.html 2014-05-12 15:31:40 +0000 @@ -0,0 +1,63 @@ +
+
+
+ + + + + + + + + + + +
+ {{'program'| translate}} + + +
+ {{attribute.name}} + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ +
+ + + +
+ +
+
+
\ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/search.html' --- dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/search.html 2014-05-12 14:26:25 +0000 +++ dhis-2/dhis-web/dhis-web-tracker-capture/src/main/webapp/dhis-web-tracker-capture/views/search.html 2014-05-12 15:31:40 +0000 @@ -163,7 +163,6 @@ {{'program'| translate}} - {{attributes.size}}