Status: {{ event.get_status_display }} {% if event.is_rig %} {% if event.sum_total > 0 %} {% if event.purchase_order %} PO: {{ event.purchase_order }} {% elif event.authorised %} Authorisation: Complete {% else %} Authorisation: {% endif %} {% endif %} {% if not event.dry_hire %} {% if event.riskassessment %} RA: {%if event.riskassessment.reviewed_by%}{%endif%} {% else %} RA: {% endif %} {% endif %} {% if not event.dry_hire %} {% if event.hs_done %} {# TODO Display status of all checklists #} Checklist: {% else %} Checklist: {% endif %} {% endif %} {% if perms.RIGS.view_invoice %} {% if event.invoice %} {% if event.invoice.void %} Invoice: Void {% elif event.invoice.is_closed %} Invoice: Paid {% else %} Invoice: Outstanding {% endif %} {% else %} Invoice: Not Generated {% endif %} {% endif %} {% endif %}