{% extends "registry/list.html" %}

{% block table_head_extn %}
<th>Trained</th>
<th>Projects</th>
<th>Groups</th>
<th>Access</th>
{% endblock %}

{% block table_row_extn %}
<td>
  {% if domainObject.isTrained %}
  yes
  {% else %}
  no
  {% endif %}
</td>
<td>
  {% for domainObject in domainObject.leadingProjects %}
    {% if domainObject.getRegisterKeyValue %}
    <a href="{{uriPrefix}}/projects/{{domainObject.getRegisterKeyValue}}/" title="{{domainObject.getRegisterKeyValue}}">{{domainObject.getLabelValue}}</a>
    {% endif %}
  {% endfor %}
</td>
<td>
  {% for domainObject in domainObject.principalships %}
    {% if domainObject.group.getRegisterKeyValue %}
    <a href="{{uriPrefix}}/groups/{{domainObject.group.getRegisterKeyValue}}/" title="{{domainObject.group.getRegisterKeyValue}}">{{domainObject.group.getLabelValue}}</a>
    {% endif %}
  {% endfor %}
</td>
<td>
  {{ domainObject.mriAccessStatus.getLabelValue }}
</td>
{% endblock %}

{% block table_item_delete_btn %}{% endblock %}

