Skip to content

Commit

Permalink
FIx next appointments display
Browse files Browse the repository at this point in the history
  • Loading branch information
adeolabadmus committed Mar 2, 2017
1 parent f91decc commit 9765327
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions app/reports/edit/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,20 @@
</div>
{{/if}}

{{log nextAppointment}}
{{#if model.visit.outPatient}}
{{#if nextAppointments.length}}
<div class="ps-info-group">
<label class="ps-info-label">{{t 'reports.form.nextAppointments' }}:</label>
{{#each nextAppointments as |appointment|}}
{{date-format appointment.startDate format="DD/MM/YYYY hh:mm a"}}
{{#if appointment.appointmentType}}
({{appointment.appointmentType}})
{{/if}},
{{/each}}
<label class="ps-info-label">{{t 'reports.form.nextAppointments' }}</label>
<ul>
{{#each nextAppointments as |appointment|}}
<li>
{{date-format appointment.startDate format="DD/MM/YYYY hh:mm a"}}
{{#if appointment.appointmentType}}
(<b>{{appointment.appointmentType}}</b>)
{{/if}}
</li>
{{/each}}
</ul>
</div>
{{/if}}

Expand Down

0 comments on commit 9765327

Please sign in to comment.