diff --git a/smash/web/templates/assignments/index.html b/smash/web/templates/assignments/index.html index f120849bf9ea2905af31d7ff68b3872115791b84..f1a450f45b261c41d305b4c652f930554fe4d841 100644 --- a/smash/web/templates/assignments/index.html +++ b/smash/web/templates/assignments/index.html @@ -134,31 +134,17 @@ right: 'month,agendaWeek' }, editable: true, - events: [{ - title: 'Aaron Aee', - start: '2016-11-26', - color: '#cfc600' - }, { - title: 'Benny Bee', - start: '2016-11-27', - color: '#cfc600' - }, { - title: 'Charlie Cee', - start: '2016-11-29', - color: '#cfc600' - }, { - title: 'John Dee', - start: '2016-11-21T10:00:00', - end: '2016-11-21T12:00:00' - }, { - title: 'Mike Fee', - start: '2016-11-21T14:00:00', - end: '2016-11-21T16:00:00' - }, { - title: 'Penny Tee', - start: '2016-11-21T09:00:00', - end: '2016-11-21T11:00:00' - }], + events: [ + {% for approach in approaching_list %} + { + title: '{{ approach.visit.subject.firstName }} {{ approach.visit.subject.lastName }}', + start: '{{ approach.appDateTime | date:"c" }}', + color: '#cfc600', + subject_id: '{{ approach.visit.subject.id }}', + id: '{{ approach.id }}' + }, + {% endfor %} + ], }); }); </script>