From e86481a91eeb23114a5a08e96ff0a7dbd74bd977 Mon Sep 17 00:00:00 2001 From: Darius Jazayeri Date: Wed, 5 Nov 2014 15:54:41 -0800 Subject: [PATCH] Proper formatting of reasons for stopping past orders --- api/src/main/resources/messages.properties | 3 +++ omod/src/main/compass/sass/drugOrders.scss | 6 +----- omod/src/main/webapp/pages/drugOrders.gsp | 5 +++++ omod/src/main/webapp/resources/scripts/drugOrders.js | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/api/src/main/resources/messages.properties b/api/src/main/resources/messages.properties index 4d37816..f743f36 100644 --- a/api/src/main/resources/messages.properties +++ b/api/src/main/resources/messages.properties @@ -1,2 +1,5 @@ ${project.parent.artifactId}.title=Order Entry UI Module orderentryui.patientdashboard.activeDrugOrders=Prescribed Medication + +orderentryui.pastAction.REVISE = Revised +orderentryui.pastAction.DISCONTINUE = Discontinued \ No newline at end of file diff --git a/omod/src/main/compass/sass/drugOrders.scss b/omod/src/main/compass/sass/drugOrders.scss index c4ec069..a1aae7a 100644 --- a/omod/src/main/compass/sass/drugOrders.scss +++ b/omod/src/main/compass/sass/drugOrders.scss @@ -76,11 +76,7 @@ form#new-order { } #past-drug-orders { - color: $darkerGrey; - - &:hover { - color: $text; - } + font-size: 0.9em; } .css-form { diff --git a/omod/src/main/webapp/pages/drugOrders.gsp b/omod/src/main/webapp/pages/drugOrders.gsp index 722ced9..69d2bbb 100644 --- a/omod/src/main/webapp/pages/drugOrders.gsp +++ b/omod/src/main/webapp/pages/drugOrders.gsp @@ -32,6 +32,11 @@ window.OpenMRS.drugOrdersConfig = ${ jsonConfig }; +${ ui.includeFragment("appui", "messages", [ codes: [ + "orderentryui.pastAction.REVISE", + "orderentryui.pastAction.DISCONTINUE" +] ])} + ${ ui.includeFragment("coreapps", "patientHeader", [ patient: patient ]) }
diff --git a/omod/src/main/webapp/resources/scripts/drugOrders.js b/omod/src/main/webapp/resources/scripts/drugOrders.js index 72beac4..4df2870 100644 --- a/omod/src/main/webapp/resources/scripts/drugOrders.js +++ b/omod/src/main/webapp/resources/scripts/drugOrders.js @@ -58,7 +58,7 @@ angular.module('drugOrders', ['orderService', 'encounterService', 'uicommons.fil if (!replacementOrder) { return ""; } - return replacementOrder.action + "d on " + omrsDateFilter(replacementOrder.dateActivated); + return emr.message("orderentryui.pastAction." + replacementOrder.action) + ", " + omrsDateFilter(replacementOrder.dateActivated); } }]).