=== 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 2016-02-19 12:07:47 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/i18n/i18n_app.properties 2016-03-01 15:11:41 +0000 @@ -167,3 +167,4 @@ delete_error_audit=The event could not be deleted because it contains an auditlog. description=Description url=URL +not_available=Not available \ 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-24 13:51:13 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-capture/views/defaultForm.html 2016-03-01 15:11:41 +0000 @@ -1,3 +1,22 @@ +
@@ -16,13 +35,16 @@ + + {{eventGridColumn.displayName}} + + * + + + {{prStDes[de.dataElement.id].dataElement.formName ? prStDes[de.dataElement.id].dataElement.formName : prStDes[de.dataElement.id].dataElement.displayName}} + + * +
- - - * -
@@ -276,15 +298,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-03-01 10:27:46 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/default-form.html 2016-03-01 15:11:41 +0000 @@ -1,3 +1,22 @@ +
@@ -14,11 +33,14 @@ - - - - + + + + +
- - + + {{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}} + * @@ -73,7 +95,14 @@
- + + {{prStDes[de.dataElement.id].dataElement.formName ? prStDes[de.dataElement.id].dataElement.formName : prStDes[de.dataElement.id].dataElement.displayName}} + * @@ -82,22 +111,22 @@ {{altValue | translate}} - - - - -
- -
-
+ + + +
+ +
+
=== 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-24 13:51:13 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/registration/default-registration-form.html 2016-03-01 15:11:41 +0000 @@ -1,12 +1,34 @@

{{'profile'| translate}}

+
- - + + {{attribute.displayName}} + * === 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 2016-02-19 16:53:52 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/i18n/i18n_app.properties 2016-03-01 15:11:41 +0000 @@ -467,4 +467,5 @@ choose_the_dates=Choose the dates fill_all_category_options=Please fill all category options description=Description -url=URL \ No newline at end of file +url=URL +not_available=Not available \ No newline at end of file === 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-25 09:11:19 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2016-03-01 15:11:41 +0000 @@ -1334,7 +1334,11 @@ } .default-form-table > tbody > tr { - height: 40px; + height: 40px; +} + +.default-form-table > tbody > tr:hover > td, .default-form-table > tbody > tr:hover > th { + background-color: #dfe9f4; } .row.null-margins { @@ -1925,26 +1929,4 @@ .row-with-go-button { margin-top: 46%; margin-left: 1%; -} - -/*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%; - text-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-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-29 14:37:31 +0000 +++ dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/dhis2/dhis2.angular.directives.js 2016-03-01 15:11:41 +0000 @@ -118,7 +118,8 @@ content: '=', title: '@details', template: "@template", - placement: "@placement" + placement: "@placement", + trigger: "@trigger" }, link: function (scope, element, attrs) { var content = $templateCache.get(scope.template); @@ -127,11 +128,17 @@ var options = { content: content, placement: scope.placement ? scope.placement : 'auto', - trigger: 'hover', + trigger: scope.trigger ? scope.trigger : 'hover', html: true, title: scope.title }; - element.popover(options); + element.popover(options); + + $('body').on('click', function (e) { + if( !element[0].contains(e.target) ) { + element.popover('hide'); + } + }); } }; }) @@ -627,65 +634,4 @@ link: function (scope, element, attrs) { } }; -}) -.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