From 037d1d55fd80a13580af3c75b8acb82962aedd01 Mon Sep 17 00:00:00 2001 From: Jonathan Niles Date: Wed, 29 Jun 2016 09:39:27 +0100 Subject: [PATCH] feat(bhInfo): popovers made simple (#545) This commit creates a bhInfo component that is simply a wrapper for popovers. Since this is a component, these popovers cannot have any knowledge of their parent scope. This component is ideal for informational popovers that only contain $translate filters. Closes #525. --- client/src/js/components/bhInfo.js | 15 +++++++++++++ .../patient_invoice/patientInvoice.html | 22 ++++++------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 client/src/js/components/bhInfo.js diff --git a/client/src/js/components/bhInfo.js b/client/src/js/components/bhInfo.js new file mode 100644 index 0000000000..37c2a48ea3 --- /dev/null +++ b/client/src/js/components/bhInfo.js @@ -0,0 +1,15 @@ +angular.module('bhima.components') + .component('bhInfo', { + template : + ' ' + + ' ', + bindings : { + template: '@', + direction: '@' + } + }); diff --git a/client/src/partials/patient_invoice/patientInvoice.html b/client/src/partials/patient_invoice/patientInvoice.html index 543793ec4f..6f79bb010f 100644 --- a/client/src/partials/patient_invoice/patientInvoice.html +++ b/client/src/partials/patient_invoice/patientInvoice.html @@ -46,13 +46,7 @@ @@ -189,29 +183,27 @@

- + popover-trigger="mouseenter" + >

{{ "FORM.LABELS.SUBSIDIES" | translate }} - + popover-trigger="mouseenter" + >