{% has_perm 'recruitment.change_participationrequest' user view.study as can_change_participationrequest %}
{% for participation_request, buckets, can_access in participants %}
{% if can_access %}
{% if participation_request.status == participation_request.RECALL_APPOINTED %}
{{ buckets }}
{% if participation_request.appointment_today %}
{% blocktrans with time=participation_request.appointment|time %}
recall today at {{ time }}
{% endblocktrans %}
{% else %}
{% blocktrans with date=participation_request.appointment|date time=participation_request.appointment|time %}
recall on {{ date }} at {{ time }}
{% endblocktrans %}
{% endif %}
{% if participation_request.appointment_today %}
{% endif %}
{% elif participation_request.status_open and participation_request.last_contacted_elsewhere.date > last_agreeable_contact_time %}
{{ buckets }}
{% trans 'recently contacted in another recruitment' %}