{% load user_link %}

Upcoming labs

{% if admin %}{% endif %} {% if labuser.is_tutor or admin %} {% endif %} {% for date, appointments in schedule.items %} {% for appointment in appointments %} {% if admin %}{% endif %} {% if labuser.is_tutor or admin %} {% endif %} {% endfor %} {% empty %} {% endfor %}
Date Experiment Students Tutor(s)
#{{ appointment.pk }} {% if forloop.first %}{{ date }}{% endif %} {{ appointment.experiment.code }} {% if appointment.students.all|length == 0 %} - {% else %} {% user_link_list appointment.students.all admin %} {% endif %} {% tutor_link_list appointment.experiment.tutors.all admin %}
No lab appointments.