Skip to content
Snippets Groups Projects
Commit dd778e3e authored by Valentin Groues's avatar Valentin Groues :eyes:
Browse files

improvements to calendar's popover

parent ef31082b
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -78,14 +78,14 @@ def appointments(request, type):
def serialize_appointment(appointment):
subject_string = ""
nd_number = screening_number = phone_number = appointment_types = None
nd_number = screening_number = phone_numbers = appointment_types = None
if appointment.visit is not None:
title = appointment.visit.follow_up_title()
subject = appointment.visit.subject
subject_string = subject.last_name + " " + subject.first_name
nd_number = subject.nd_number
screening_number = subject.screening_number
phone_number = subject.phone_number
phone_numbers = ", ".join(filter(None, [subject.phone_number, subject.phone_number_2, subject.phone_number_3]))
appointment_types = ", ".join([unicode(type) for type in appointment.appointment_types.all()])
else:
title = appointment.comment
......@@ -104,7 +104,7 @@ def serialize_appointment(appointment):
"title": title,
"nd_number": nd_number,
"screening_number": screening_number,
"phone_number": phone_number,
"phone_number": phone_numbers,
"appointment_types": appointment_types,
"type": type,
"datetime_when": time,
......
......@@ -135,7 +135,8 @@
content: content,
html: true,
container: 'body',
trigger: 'hover'
trigger: 'hover',
placement: 'bottom'
});
console.log(event);
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment