{% load button from filters %}
{% button 'edit' 'event_update' event.pk %} {% if event.is_rig %} {% button 'print' 'event_print' event.pk %} {% endif %} {% button 'duplicate' 'event_duplicate' event.pk %} {% if event.is_rig %} {% if event.internal %} {% if event.authorised %} Authorised {% 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 %} Awaiting Authorisation {% else %} Request Authorisation {% endif %} {% endif %} {% if perms.RIGS.add_invoice %} Invoice {% endif %} Subhire Insurance Form {% endif %}