{% 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 %} {% if user.is_staff %} {% elif reservation.title %} {% endif %} {% if reservation.tool %} {% if reservation.tool_accessories %} {% endif %} {% elif reservation.area %} {% endif %} {% if reservation.project %} {% if reservation_project_can_be_changed %} {% endif %} {% endif %} {% if request.user == reservation.user and reservation.has_not_ended and reservation.has_not_started %} {% else %} {% endif %} {% if request.user == reservation.user and reservation.has_not_ended and reservation.has_not_started %} {% else %} {% endif %} {% if reservation.question_data_json.items %} {% endif %} {% if reservation.self_configuration %} {% endif %} {% if reservation.additional_information %} {% endif %}
Title: {{ reservation.title }}
User: {{ reservation.user }}
Created by: {{ reservation.creator }}
Created on: {{ reservation.creation_time }}
Tool: {{ reservation.tool }}
Selected accessories: {{ reservation.tool_accessories.all|join:", " }}
Area: {{ reservation.area }}
Project: {{ reservation.project }} {% if reservation_project_can_be_changed %}{% endif %}
{{ reservation.start }} Start: {{ reservation.start }}
{{ reservation.end }} End: {{ reservation.end }}
Identifier: {{ reservation.id }}
Reservation questions: {% for question_name, data in reservation.question_data_json.items %} {% if data.type == 'group' %} {% else %} {% endif %} {% endfor %}
{{ data.title }}{% if data.title|slice:"-1:" != ":" %}:{% endif %} {% res_question_tbody data.user_input %}
{{ data.title }}{% if data.title|slice:"-1:" != ":" %}:{% endif %} {{ data.user_input|linebreaksbr }}
Self-configuration: {{ reservation.user }} has opted to perform the tool configuration
Additional information: {{ reservation.additional_information|linebreaksbr }}
{# 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 %}