{% extends 'django_tables2/table.html' %} {% load django_tables2 table_tags review_tags wagtailimages_tags i18n %} {% block table.tbody.row %} {% for column, cell in row.items %} {% if column.name != "selected" %} {{ column.header }}: {% endif %} {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %} {% endfor %} {% with submission=row.record %}
Applicant
Last updated
Screening statuses
Review outcomes
{{ submission.full_name }} {% if submission.last_update %} by {{ submission.last_user_update }}
{{ submission.last_update|date:"Y-m-d \a\t H:i" }} {% else %} — {% endif %}
{{ submission.joined_screening_statuses|default:"Awaiting" }}
    {% for reviewer in submission.has_reviewed %}
  • {{ reviewer }} {% if reviewer.role %}{% image reviewer.role.icon max-12x12 %}{% endif %} {{ reviewer.review.get_recommendation_display }}
  • {% for opinion in reviewer.review.opinions.all %} {% if forloop.first %}
      {% endif %}
    • {{ opinion.author }} {% if opinion.author.role %}{% image opinion.author.role.icon max-12x12 %}{% endif %} {{ opinion.get_opinion_display }}
    • {% if forloop.last %}
    {% endif %} {% endfor %} {% endfor %} {% for reviewer in submission.hasnt_reviewed %}
  • {{ reviewer }} {% if reviewer.role %}{% image reviewer.role.icon max-12x12 %}{% endif %}
  • {% endfor %}
{% endwith %} {% if row.record.previous %} {# we have a linked application, re-render the header row #} {% for column in row.table.columns %} {% if forloop.first %} {% elif forloop.counter == 2 %} {% else %} {% endif %} {% endfor %} {# mutate the row to render the data for the child row #} {% with row=row|row_from_record:row.record.previous %} {% for column, cell in row.items %} {% if column.name != "selected" %} {% endif %} {% endfor %} {% endwith %}
Linked {{ row.record.previous.stage }}{{ column.header }}
{% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %}
{% endif %} {% endblock %} {% block table.tbody.empty_text %} {{ table.empty_text }} {% endblock table.tbody.empty_text %} {% block pagination %} {% if table.page and table.paginator.num_pages > 1 %} {% endif %} {% endblock pagination %}