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 {% elif event.authorisation and event.authorisation.amount != event.total and event.authorisation.last_edited_at > event.auth_request_at %} Authorisation: Issue {% elif event.auth_request_to %} Authorisation: Sent {% else %} Authorisation: {% endif %} {% endif %} {% if not event.dry_hire %} {% if event.riskassessment %} RA: {% else %} RA: {% endif %} {% if event.has_checklist %} Checklist: {% if event.checklists.count > 1 %}({{event.checklists.count}}){% endif %} {% else %} Checklist: {% endif %} {% if event.has_power %} Power Record: {% if event.power_tests.count > 1 %}({{event.power_tests.count}}){% endif %} {% else %} Power Record: {% 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 %}