-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Conversation
OPD Reports Custom Forms
Fix/report acceptance tests
Refactor code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adeolabadmus thanks for the PR. There are a couple of things that need to be changed below.
app/locales/en/translations.js
Outdated
@@ -1241,7 +1241,8 @@ export default { | |||
author: 'Author' | |||
}, | |||
visitType: 'Visit Type', | |||
examiner: 'Visit Examiner', | |||
visitExaminer: 'Visit Examiner', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need two different labels here. Just use Examiner.
app/visits/reports/edit/template.hbs
Outdated
@@ -55,7 +55,7 @@ | |||
|
|||
{{#if visit.examiner }} | |||
<div class="ps-info-group test-examiner"> | |||
<p><b class="test-examiner-label">{{t 'reports.labels.examiner' }}:</b> | |||
<p><b class="test-examiner-label">{{t 'reports.labels.visitExaminer' }}:</b> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use reports.labels.examiner instead of reports.labels.visitExaminer.
app/visits/reports/edit/template.hbs
Outdated
@@ -181,13 +181,12 @@ | |||
<span class="test-visit-discharge-date-data">{{date-format model.reportDate format="DD/MM/YYYY"}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't notice this before -- this shouldn't be specifying a date format, it should use the default for the data-helper, which is the locale specific date. Please take off the format="DD/MM/YYYY"
@jkleinsc Changes have been effected. |
Looks good to me @adeolabadmus. Thanks for updating! I'll merge it in. |
Fixes #1014
cc @HospitalRun/core-maintainers