{% load i18n auth utils %}
{{ subject|verbose_name:'privacy_level' }}
{% icon 'user-shield' %} {{ subject|display:'privacy_level' }} {% if study and subject.privacy_level > study.members_min_privacy_level %} {% icon 'warning' label=_('Not all members of this study can access this subject') %} {% endif %}
{% translate "Reliability" %}
{{ subject|display:'reliability' }}
{% include 'contacts/__contact_detail.html' with contact=subject.contact %} {% for legal_representative in subject.contact.legal_representatives.all %}
{% has_privacy_level legal_representative.subject.privacy_level user as can_access %} {% if can_access %} {% include 'contacts/__contact_detail.html' with contact=legal_representative legal_representative=True %} {% else %}
{% translate 'Legal representative' %}
{% translate 'insufficient privacy level' %}
{% endif %} {% endfor %}