{% load user_link %} {% if requests|length > 0 %}

Appointment requests

{% for date_exp in requests.values %} {% for request in date_exp %} {% endfor %} {% endfor %}
Lab date Experiment Student Tutor(s)
{% if forloop.first %}{{ request.date.date }}{% endif %} {% if forloop.first %} {{ request.experiment.code }} {% endif %} {% user_link request.student admin %} {% if request.partners.count > 0 %} ( +{{ request.partners.count }} ) {% endif %} {% if request.comment %} {% endif %} {% tutor_link_list request.experiment.tutors.all admin %} {% if forloop.first and admin or labuser.is_tutor %} {% endif %} {% if admin or labuser.is_tutor or LABCOURSE.STUDENT.CAN_CANCEL_APPOINTMENT_REQUEST and labuser.is_student %} {% endif %}

{% endif %}