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

{% block is_domain_object_inactive %}
  {% if domainObject.isInactive %} class="record-inactive"{% endif %}
{% endblock %}

{% block table_head_extn %}
  <th>Scans</th>
  <th>Last</th>
  <th>Leader</th>
  <th>Ethics</th>
  <th>Account</th>
  <th>Outcome</th>
{% endblock %}

{% block table_row_extn %}
  <td>
    {{ domainObject.scanningSessions.count }}
  </td>
  <td>
    <a href="{{uriPrefix}}/scanningSessions/{{domainObject.lastScan.getRegisterKeyValue}}/" title="{{domainObject.lastScan.getRegisterKeyValue}}"><nobr>{{ domainObject.lastScan.present.starts }}</nobr></a>
  </td>
  <td>
    <a href="{{uriPrefix}}/researchers/{{domainObject.leader.getRegisterKeyValue}}/" title="{{domainObject.leader.getRegisterKeyValue}}">{{domainObject.leader.getLabelValue}}</a>
  </td>
  <td>
    {% for assn in domainObject.approvals %}
    <a href="{{uriPrefix}}/approvals/{{assn.approval.getRegisterKeyValue}}/" title="{{assn.approval.getRegisterKeyValue}}">{{assn.approval.getLabelValue}}</a>
    {% endfor %}
  </td>
  <td>
    <a href="{{uriPrefix}}/accounts/{{domainObject.account.getRegisterKeyValue}}/" title="{{domainObject.account.getRegisterKeyValue}}">{{domainObject.account.getLabelValue}}</a>
  </td>
  <td>
    {{domainObject.outcome.getLabelValue}}
  </td>
{% endblock %}


{% block table_item_delete_btn %}{% endblock %}

