=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/event-capture.appcache' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/event-capture.appcache 2014-12-08 16:37:23 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/event-capture.appcache 2015-01-20 14:36:12 +0000 @@ -120,8 +120,7 @@ scripts/filters.js scripts/directives.js scripts/controllers.js -scripts/notes-controller.js -scripts/orgunitTreeSearch.js +scripts/notes-controller.js views/column-modal.html views/ec-custom-form.html === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/i18n/i18n_app.properties' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/i18n/i18n_app.properties 2015-01-15 15:29:08 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/i18n/i18n_app.properties 2015-01-20 14:36:12 +0000 @@ -35,6 +35,7 @@ option_required=Value must be selected from drop-down bool_required=Value must be a boolean ok=Ok +find=Find done=Done remove=Remove are_you_sure_to_remove=Are you sure you want to remove the selected item? === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/index.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/index.html 2015-01-13 17:31:37 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/index.html 2015-01-20 14:36:12 +0000 @@ -75,8 +75,7 @@ - - + === removed file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/orgunitTreeSearch.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/orgunitTreeSearch.js 2014-05-28 08:15:56 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/scripts/orgunitTreeSearch.js 1970-01-01 00:00:00 +0000 @@ -1,15 +0,0 @@ -jQuery(document).ready(function() { - jQuery("#searchIcon").click(function() { - jQuery("#searchSpan").toggle(); - jQuery("#searchField").focus(); - }); - - jQuery("#searchField").autocomplete({ - source: "../dhis-web-commons/ouwt/getOrganisationUnitsByName.action", - select: function(event, ui) { - jQuery("#searchField").val(ui.item.value); - selection.findByName(); - } - }); -}); - === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/home.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/home.html 2015-01-14 14:02:44 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/home.html 2015-01-20 14:36:12 +0000 @@ -1,16 +1,7 @@
-
- - - - - -
- + +
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/i18n/i18n_app.properties' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/i18n/i18n_app.properties 2015-01-20 11:51:34 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/i18n/i18n_app.properties 2015-01-20 14:36:12 +0000 @@ -52,6 +52,7 @@ last=Last go_to_dashboard=Go to dashboard go=Go +find=Find edit=Edit edit_profile=Edit profile association=Manage associations @@ -271,4 +272,5 @@ get_from_map=Get from map capture=Capture point_and_click_for_coordinate=Point and click for coordinate -value_must_be_between=Value must be between \ No newline at end of file +value_must_be_between=Value must be between +locate_organisation_unit_by_name=Locate organisation unit by name \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/index.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/index.html 2014-12-15 14:00:00 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/index.html 2015-01-20 14:36:12 +0000 @@ -74,7 +74,6 @@ - === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/styles/style.css' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2015-01-20 10:07:47 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2015-01-20 14:36:12 +0000 @@ -40,10 +40,6 @@ /* Form /*----------------------------------------------------------------------------*/ -input[type="button"], input[type="submit"] { - width: 130px; -} - .fixed-text-width { width: 260px; } === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/home.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/home.html 2015-01-20 11:51:34 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/views/home.html 2015-01-20 14:36:12 +0000 @@ -34,9 +34,11 @@
  • {{'registration_and_data_entry' | translate}}
  • {{'reports' | translate}}
  • -
    - -
    +
    + + + +
    === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/angular/plugins/dhis2/directives.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/angular/plugins/dhis2/directives.js 2015-01-16 15:40:31 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/angular/plugins/dhis2/directives.js 2015-01-20 14:36:12 +0000 @@ -4,6 +4,36 @@ var d2Directives = angular.module('d2Directives', []) + +.directive('d2OuSearch', function() { + + return { + restrict: 'E', + template: '
    \n\ + \n\ + \n\ +
    ', + link: function (scope, element, attrs) { + + $("#searchIcon").click(function() { + $("#searchSpan").toggle(); + $("#searchField").focus(); + }); + + $("#searchField").autocomplete({ + source: "../dhis-web-commons/ouwt/getOrganisationUnitsByName.action", + select: function(event, ui) { + $("#searchField").val(ui.item.value); + selection.findByName(); + } + }); + } + }; +}) + .directive('inputValidator', function() { return {