{% load i18n utils %}

{% translate 'Contact data' %}

{% if legal_representative %}
{% translate 'Legal representative' %}
{{ contact.full_name }} {% if contact.legal_representative_of.count > 1 %} {% icon 'users' label=_('This person represents other subjects who may also be suitable for this study.') %} {% endif %} {% if contact.subject.blocked %} {{ contact.subject|verbose_name:'blocked' }} {% endif %} {% if contact.subject.deceased %} {{ contact.subject|verbose_name:'deceased' }} {% endif %}
{% endif %}
{{ contact|verbose_name:'email' }}
{{ contact|display:'email' }}
{{ contact|verbose_name:'phone_number' }}
{{ contact|display:'phone_number' }}
{{ contact|verbose_name:'phone_number_alternative' }}
{{ contact|display:'phone_number_alternative' }}
{% translate 'Address' %}
{{ contact.address|default:'—' }}

{% translate "Operational hints" %}

{{ contact|verbose_name:'preferred_contact_method' }}
{{ contact|display:'preferred_contact_method' }}
{% translate "Currently available" %}
{% if contact.subject.is_available %} {% translate "Yes" %} {% icon 'phone' %} {% else %} {% translate "No" %} {% icon 'phone' %} {% blocktranslate with next_available=contact.subject.not_available_until %} (not until {{ next_available }}) {% endblocktranslate %} {% endif %}