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

{% block table_head_extn %}
<th>Principals</th>
<th>Researchers</th>
<th>Organisations</th>
{% endblock %}

{% block table_row_extn %}
<td>
  {% for domainObject in domainObject.principals %}
    {% if domainObject.researcher.getRegisterKeyValue %}
    <a href="{{uriPrefix}}/researchers/{{domainObject.researcher.getRegisterKeyValue}}/" title="{{domainObject.researcher.getRegisterKeyValue}}">{{domainObject.researcher.getLabelValue}}</a>
    {% endif %}
  {% endfor %}
</td>
<td>
  {% for domainObject in domainObject.researchers %}
    {% if domainObject.researcher.getRegisterKeyValue %}
    <a href="{{uriPrefix}}/researchers/{{domainObject.researcher.getRegisterKeyValue}}/" title="{{domainObject.researcher.getRegisterKeyValue}}">{{domainObject.researcher.getLabelValue}}</a>
    {% endif %}
  {% endfor %}
</td>
<td>
  {% for domainObject in domainObject.organisations %}
    {% if domainObject.organisation.getRegisterKeyValue %}
    <a href="{{uriPrefix}}/organisations/{{domainObject.organisation.getRegisterKeyValue}}/" title="{{domainObject.organisation.getRegisterKeyValue}}">{{domainObject.organisation.getLabelValue}}</a>
    {% endif %}
  {% endfor %}
</td>
{% endblock %}

{% block table_item_delete_btn %}{% endblock %}

