Revision 15a79142
Added by Mikaël Ates over 12 years ago
calebasse/agenda/views.py | ||
---|---|---|
97 | 97 |
if event.event_type_id == 1: |
98 | 98 |
appointment['type'] = 1 |
99 | 99 |
appointment['label'] = event.patient.display_name |
100 |
appointment['paper_id'] = event.patient.paper_id |
|
100 | 101 |
appointment['act'] = event.act_type.name |
101 | 102 |
appointment['state'] = event.act.get_state() |
102 | 103 |
appointment['absent'] = event.act.is_absent() |
... | ... | |
108 | 109 |
appointment['label'] = '%s - %s' % (event.event_type.label, |
109 | 110 |
event.title) |
110 | 111 |
appointment['participants'] = event.participants.all() |
112 |
appointment['len_participants'] = len(appointment['participants']) |
|
111 | 113 |
appointments_times[start_datetime]['row'] += 1 |
112 | 114 |
appointments_times[start_datetime]['appointments'].append(appointment) |
113 | 115 |
context['appointments_times'] = sorted(appointments_times.items()) |
Also available in: Unified diff
agenda: refine agenda display.