Skip to content

Commit

Permalink
Proper formatting of reasons for stopping past orders
Browse files Browse the repository at this point in the history
  • Loading branch information
djazayeri committed Nov 5, 2014
1 parent ab206a1 commit e86481a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions api/src/main/resources/messages.properties
Original file line number Diff line number Diff line change
@@ -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
6 changes: 1 addition & 5 deletions omod/src/main/compass/sass/drugOrders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,7 @@ form#new-order {
}

#past-drug-orders {
color: $darkerGrey;

&:hover {
color: $text;
}
font-size: 0.9em;
}

.css-form {
Expand Down
5 changes: 5 additions & 0 deletions omod/src/main/webapp/pages/drugOrders.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
window.OpenMRS.drugOrdersConfig = ${ jsonConfig };
</script>

${ ui.includeFragment("appui", "messages", [ codes: [
"orderentryui.pastAction.REVISE",
"orderentryui.pastAction.DISCONTINUE"
] ])}

${ ui.includeFragment("coreapps", "patientHeader", [ patient: patient ]) }

<div id="drug-orders-app" ng-controller="DrugOrdersCtrl" ng-init='init()'>
Expand Down
2 changes: 1 addition & 1 deletion omod/src/main/webapp/resources/scripts/drugOrders.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}]).

Expand Down

0 comments on commit e86481a

Please sign in to comment.