{% extends request.is_ajax|yesno:"base_ajax.html,base_rigs.html" %} {% block title %}{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %} | {{object.name}}{% endblock %} {% block content %}
{% if not request.is_ajax %}

{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %} | {{ object.name }} {% if event.dry_hire %}Dry Hire{% endif %}

{% if perms.RIGS.view_event %}
{% include 'event_detail_buttons.html' %}
{% endif %} {% endif %} {% if object.is_rig and perms.RIGS.view_event %} {# only need contact details for a rig #}
Contact Details
Person
{% if object.person %} {{ object.person }} {% endif %}
Email
{{ object.person.email }}
Phone Number
{{ object.person.phone }}
{% if event.organisation %}
Organisation
Organisation
{% if object.organisation %} {{ object.organisation }} {% endif %}
Phone Number
{{ object.organisation.phone }}
Has SU Account
{{ event.organisation.union_account|yesno|capfirst }}
{% endif %}
{% endif %}
Event Info
Event Venue
{% if object.venue %} {{ object.venue }} {% endif %}
{% if event.is_rig %}
Event MIC
{% if event.mic and perms.RIGS.view_profile %} {{ event.mic.name }} {% else %} {{ event.mic.name }} {% endif %}
{% endif %}
Status
{{ event.get_status_display }}
 
{% if event.is_rig %}
Crew Meet
{{ event.meet_at|date:"D d M Y H:i"|default:"" }}
{{ event.meet_info|default:"" }}
Access From
{{ event.access_at|date:"D d M Y H:i"|default:"" }}
{% endif %}
Event Starts
{{ event.start_date|date:"D d M Y" }} {{ event.start_time|date:"H:i" }}
Event Ends
{{ event.end_date|date:"D d M Y" }} {{ event.end_time|date:"H:i" }}
 
Event Description
{{ event.description|linebreaksbr }}
 
Based On
{% if object.based_on %} {% if object.based_on.is_rig %}N{{ object.based_on.pk|stringformat:"05d" }}{% else %} {{ object.based_on.pk }}{% endif %} {{ object.based_on.name }} {% if object.based_on.mic %}by {{ object.based_on.mic.name }}{% endif %} {% endif %}
{% if event.dry_hire %}
Checked In By
{{ object.checked_in_by.name }}
{% endif %} {% if event.is_rig %}
Collected By
{{ object.collector }}
{% endif %} {% if event.is_rig and not event.internal and perms.RIGS.view_event %}
 
PO
{{ object.purchase_order }}
{% endif %}
{% if event.is_rig and event.internal and perms.RIGS.view_event %}
Client Authorisation
Authorisation Request
{{ object.auth_request_to|yesno:"Yes,No" }}
By
{{ object.auth_request_by }}
At
{{ object.auth_request_at|date:"D d M Y H:i"|default:"" }}
To
{{ object.auth_request_to }}
 
Authorised
{{ object.authorised|yesno:"Yes,No" }}
Authorised by
{% if object.authorisation %} {{ object.authorisation.name }} ({{ object.authorisation.email }}) {% endif %}
Authorised at
{{ object.authorisation.last_edited_at|date:"D d M Y H:i" }}
Authorised amount
{% if object.authorisation %} £ {{ object.authorisation.amount|floatformat:"2" }} {% endif %}
Requested by
{{ object.authorisation.sent_by }}
{% endif %} {% if not request.is_ajax and perms.RIGS.view_event %}
{% include 'event_detail_buttons.html' %}
{% endif %} {% if event.is_rig %}
Event Details
{% if perms.RIGS.view_event %}

Notes

{{ event.notes|linebreaksbr }}
{% endif %} {% include 'item_table.html' %}
{% if not request.is_ajax and perms.RIGS.view_event %}
{% include 'event_detail_buttons.html' %}
{% endif %} {% endif %} {% if not request.is_ajax and perms.RIGS.view_event %} {% endif %}
{% endblock %} {% if request.is_ajax %} {% block barter %}