{% 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 %}
{% trans "Applicant" %}
{% trans "Last updated" %}
{% trans "Screening decisions" %}
{% trans "Review outcomes" %}
{{ submission.full_name }} {% if submission.last_update %} {% trans "by" %} {{ submission.last_user_update }}
{{ submission.last_update|date:"SHORT_DATETIME_FORMAT" }} {% else %} — {% endif %}
{% trans "Awaiting" as awaiting %} {{ 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 %}
{% trans "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 %}