=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/styles/style.css' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/styles/style.css 2016-02-19 16:53:52 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/styles/style.css 2016-02-24 13:51:13 +0000 @@ -542,15 +542,24 @@ width: 15px; } -/*classes for the details icon on dataelements*/ -.info-icon { - color: #3162C5; - width:14px; - height: 14px; - cursor: pointer; -} +/*classes for the details tooltip popup for dataelements*/ .popover { max-width:400px; pointer-events:none; +} + +.tooltip-separator-line { + height: 0; + margin-right:0em; + margin-top: 0em; + margin-bottom: 0em; + width:100%; + align: center; + border: 0; + border-top: 1px solid #ddd;" +} + +.tooltip-font { + font-size: small; } \ No newline at end of file === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html 2016-02-22 12:32:13 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html 2016-02-24 13:51:13 +0000 @@ -15,10 +15,11 @@ - - {{eventGridColumn.displayName}} - + + * @@ -275,11 +276,13 @@ - {{prStDes[de.dataElement.id].dataElement.formName ? prStDes[de.dataElement.id].dataElement.formName : prStDes[de.dataElement.id].dataElement.displayName}} - - + + * === 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 2016-02-12 15:42:21 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/eventList.html 2016-02-24 13:51:13 +0000 @@ -21,7 +21,7 @@
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/compare-form.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/compare-form.html 2016-02-22 12:32:13 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/compare-form.html 2016-02-24 13:51:13 +0000 @@ -159,12 +159,12 @@
- + + * - - - -
@@ -299,14 +299,16 @@
-
+
- + + * - - - -
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/default-form.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/default-form.html 2016-02-22 12:32:13 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/default-form.html 2016-02-24 13:51:13 +0000 @@ -14,11 +14,13 @@ - + + * - - - + {{altValue | translate}} === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/table-entry-form.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/table-entry-form.html 2016-02-22 12:32:13 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/table-entry-form.html 2016-02-24 13:51:13 +0000 @@ -64,10 +64,12 @@ {{currentStage.excecutionDateLabel}} - {{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}} + + * - - Status === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/registration/default-registration-form.html' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/registration/default-registration-form.html 2016-02-22 12:32:13 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/registration/default-registration-form.html 2016-02-24 13:51:13 +0000 @@ -2,9 +2,12 @@
- * - + + * === 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 2016-02-19 16:53:52 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2016-02-24 13:51:13 +0000 @@ -1927,15 +1927,24 @@ margin-left: 1%; } -/*classes for the details icon on dataelements*/ -.info-icon { - color: #3162C5; - width:14px; - height: 14px; - cursor: pointer; -} +/*classes for the details tooltip popup for dataelements*/ .popover { max-width:400px; pointer-events:none; -} \ No newline at end of file +} + +.tooltip-separator-line { + height: 0; + margin-right:0em; + margin-top: 0em; + margin-bottom: 0em; + width:100%; + align: center; + border: 0; + border-top: 1px solid #ddd;" +} + +.tooltip-font { + font-size: small; +} === modified file 'dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js' --- dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js 2016-02-19 16:53:52 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js 2016-02-24 13:51:13 +0000 @@ -626,64 +626,65 @@ link: function (scope, element, attrs) { } }; -}).directive('d2Info', function ($translate) { - return { - restrict: 'EA', - template: '', - scope: { - title: '@?', - content: '@' - }, - link: function (scope, element) { - var showIcon = true; - - - scope.formattedContent = getFormattedContent(scope.content); - $('body').on('click', function (e) { - //scope.$apply(); - - $('[data-toggle="popover"]').each(function () { - if (!$(this).is(e.target)) { - $(this).popover('hide'); - } else { - if (showIcon) { - $(this).popover('show'); - showIcon = false; - } - } - }); - }); - - element.on('$destroy', function (e) { - $('[data-toggle="popover"]').each(function () { - if (!e.target) { - alert("No target"); - } - if (!$(this).is(e.target)) { - $(this).popover('hide'); - } - }); - }); - - - function getFormattedContent(contentArrayString) { - var contentArray = $.parseJSON(contentArrayString); - var formattedString = ""; - for (var index = 0; index < contentArray.length; index++) { - var content = contentArray[index]; - if (!content.data) { - content.data = "Not available"; - } - if (content.name === $translate.instant('url') && content.data !== "Not available") { - formattedString += '
' + content.name + ': ' + content.data + '
'; - - } else { - formattedString += '
' + content.name + ': ' + content.data + '
'; - } - } - return formattedString; +}) +.directive('d2Info', function ($translate) { + return { + restrict: 'EA', + template: '' + + '{{displayName}}'+ + '', + scope: { + title: '@?', + content: '@', + displayName: '@' + }, + link: function (scope, element) { + var showIcon = true; + + scope.formattedContent = getFormattedContent(scope.content); + + $('body').on('click', function (e) { + $('[data-toggle="popover"]').each(function () { + if (!$(this).is(e.target)) { + $(this).popover('hide'); + } else { + if (showIcon) { + $(this).popover('show'); + } + } + }); + }); + + element.on('$destroy', function (e) { + $('[data-toggle="popover"]').each(function () { + if (!$(this).is(e.target)) { + $(this).popover('hide'); + scope.clicked = false; + } + }); + }); + + function getFormattedContent(contentArrayString) { + var contentArray = $.parseJSON(contentArrayString); + var formattedString = ""; + for (var index = 0; index < contentArray.length; index++) { + var content = contentArray[index]; + if (!content.data) { + content.data = "Not available"; + } + if (index >= 1) { + formattedString += '
'; + } + if (content.name === $translate.instant('url') && content.data !== "Not available") { + formattedString += '
' + content.name + ': ' + content.data + '
'; + } else { + formattedString += '
' + content.name + ': ' + content.data + '
'; + } } + return formattedString; } } - }); \ No newline at end of file + } +}); \ No newline at end of file