{% extends popup_view|yesno:"base/popup.html,base.html" %}
{% load custom_tags_and_filters %}
{% load tz %}
{% if not popup_view %}
{% block extrahead %}
{% endblock %}
{% endif %}
{% block title %}{{ reservation.reservation_item }} reservation details{% endblock %}
{% block content %}
{% if not popup_view %}
{{ reservation.reservation_item }} reservation details
{% endif %}
{% if reservation.short_notice %}
{{ facility_name }} staff were not given sufficient notice to configure this tool. There is no guarantee that this tool will be configured properly at time of use.
{% endif %}
{% if reservation.missed %}
This reservation was automatically removed from the calendar due to {{ reservation.reservation_item_type.value }} inactivity.
{% endif %}
{# Allow the user to cancel the reservation if they have that privilege. #}
{% if not reservation.missed and not reservation.cancelled %}
{% if reservation.user.id == user.id and reservation.has_not_ended or user.is_staff %}
{% endif %}
{% endif %}
{% if popup_view and reservation.question_data_json.items %}
{% endif %}
{% endblock %}