From d96db10406f8fb61d5402bc34a075b3aae013ceb Mon Sep 17 00:00:00 2001 From: Chase Clettenberg Date: Thu, 28 Apr 2016 22:09:47 -0500 Subject: [PATCH] Add placeholder text when Notes and Results are blank --- .../completed/completed-list-item/template.hbs | 16 ++++++++++++++-- .../index/requested-list-item/template.hbs | 8 +++++++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/app/imaging/completed/completed-list-item/template.hbs b/app/imaging/completed/completed-list-item/template.hbs index 0bc2503dca..504e3e067e 100644 --- a/app/imaging/completed/completed-list-item/template.hbs +++ b/app/imaging/completed/completed-list-item/template.hbs @@ -3,5 +3,17 @@ {{imaging.requestedBy}} {{imaging.patient.displayName}} {{imaging.imagingType.name}} -{{imaging.results}} -{{imaging.notes}} + + {{#if imaging.results}} + {{imaging.results}} + {{else}} + No Results + {{/if}} + + + {{#if imaging.notes}} + {{imaging.notes}} + {{else}} + No Notes + {{/if}} + diff --git a/app/imaging/index/requested-list-item/template.hbs b/app/imaging/index/requested-list-item/template.hbs index 3be2f1f602..fb02c91cee 100644 --- a/app/imaging/index/requested-list-item/template.hbs +++ b/app/imaging/index/requested-list-item/template.hbs @@ -2,7 +2,13 @@ {{imaging.requestedBy}} {{imaging.patient.displayName}} {{imaging.imagingType.name}} -{{imaging.notes}} + + {{#if imaging.notes}} + {{imaging.notes}} + {{else}} + {{#link-to 'imaging.edit' imaging}} Add Notes {{/link-to}} + {{/if}} + {{#if showActions}}