{% extends request.is_ajax|yesno:"base_ajax.html,base.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 event.is_rig %} {% endif %} {% if event.is_rig %} {% if perms.RIGS.add_invoice %} {% endif %} {% endif %}
{% endif %} {% if object.is_rig %} {# 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 %}
PO
{{ object.purchase_order }}
{% endif %}
{% if not request.is_ajax %}
{% if event.is_rig %} {% endif %} {% if event.is_rig %} {% if perms.RIGS.add_invoice %} {% endif %} {% endif %}
{% endif %} {% if event.is_rig %}
Event Details

Notes

{{ event.notes|linebreaksbr }}
{% include 'RIGS/item_table.html' %}
{% if not request.is_ajax %}
{% if event.is_rig %} {% endif %} {% if event.is_rig %} {% if perms.RIGS.add_invoice %} {% endif %} {% endif %}
{% endif %} {% endif %} {% if not request.is_ajax %}
Last edited at {{ object.last_edited_at }} by {{ object.last_edited_by.name }}
{% endif %}
{% endblock %} {% if request.is_ajax %} {% block footer %}
Last edited at {{ object.last_edited_at }} by {{ object.last_edited_by.name }}
{% endblock %} {% endif %}