{% extends 'django_tables2/table.html' %} {% load django_tables2 table_tags review_tags %} {% block table.tbody.row %} {% for column, cell in row.items %} {{ column.header }}: {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %} {% endfor %} {% with submission=row.record %}
Applicant
Last updated
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 %}
    {% for review in submission.reviews.all %}
  • {{ review.author }} {{ review.get_recommendation_display }}
  • {% 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 %} {% else %} {% endif %} {% endfor %} {# mutate the row to render the data for the child row #} {% with row=row|row_from_record:row.record.previous %} {{ block.super }} {% endwith %}
Linked {{ row.record.previous.stage }}{{ column.header }}
{% endif %} {% endblock %}