Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Add placeholder text when Notes and Results are blank
Browse files Browse the repository at this point in the history
  • Loading branch information
clettenberg committed Apr 29, 2016
1 parent ee2a636 commit d96db10
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
16 changes: 14 additions & 2 deletions app/imaging/completed/completed-list-item/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,17 @@
<td>{{imaging.requestedBy}}</td>
<td>{{imaging.patient.displayName}}</td>
<td>{{imaging.imagingType.name}}</td>
<td>{{imaging.results}}</td>
<td>{{imaging.notes}}</td>
<td>
{{#if imaging.results}}
{{imaging.results}}
{{else}}
<span class="light-text">No Results</span>
{{/if}}
</td>
<td>
{{#if imaging.notes}}
{{imaging.notes}}
{{else}}
<span class="light-text">No Notes</span>
{{/if}}
</td>
8 changes: 7 additions & 1 deletion app/imaging/index/requested-list-item/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
<td>{{imaging.requestedBy}}</td>
<td>{{imaging.patient.displayName}}</td>
<td>{{imaging.imagingType.name}}</td>
<td>{{imaging.notes}}</td>
<td>
{{#if imaging.notes}}
{{imaging.notes}}
{{else}}
{{#link-to 'imaging.edit' imaging}} Add Notes {{/link-to}}
{{/if}}
</td>

{{#if showActions}}
<td>
Expand Down

0 comments on commit d96db10

Please sign in to comment.