{% extends "base.html" %} {% block title %}Reservation Details - Edu-Space Admin{% endblock %} {% block content %}

Reservation Details

Back to List
Reservation Information
{{ reservation.status.value }}

#{{ reservation.id }}

{% if reservation.user %} {{ reservation.user.first_name }} {{ reservation.user.last_name }} {% else %} Unknown {% endif %}

{{ reservation.start_time.strftime('%B %d, %Y') }}
{{ reservation.start_time.strftime('%H:%M') }} - {{ reservation.end_time.strftime('%H:%M') }}

{% set duration = (reservation.end_time - reservation.start_time).total_seconds() / 60 %} {{ (duration / 60) | round(1) }} hours

{% if reservation.purpose %}

{{ reservation.purpose }}

{% endif %} {% if reservation.notes %}

{{ reservation.notes }}

{% endif %}
Classroom Information
{% if reservation.classroom %}

{{ reservation.classroom.code_display }}

{{ reservation.classroom.building }}

{{ reservation.classroom.capacity }} people

{% if reservation.classroom.description %}

{{ reservation.classroom.description }}

{% endif %}
{% else %}

Classroom information not available

{% endif %}
Subject & Commission
{% if reservation.commission %}

{{ reservation.commission.get_full_code() }}

{% if reservation.commission.subject %}

{{ reservation.commission.subject.name }}

{% endif %} {% else %}

No commission assigned

{% endif %}
Attendance

{{ reservation.expected_attendees }}

Expected Attendees

{% if reservation.classroom %}
{% set percentage = (reservation.expected_attendees / reservation.classroom.capacity * 100) %}
{{ reservation.expected_attendees }} / {{ reservation.classroom.capacity }} capacity {% endif %}
Actions
{% if reservation.status.value == 'PENDING' %}
{% endif %} {% if reservation.can_be_cancelled() %}
{% endif %} View All Reservations
Created: {{ reservation.created_at.strftime('%Y-%m-%d %H:%M:%S') }}
{% if reservation.updated_at %}
Updated: {{ reservation.updated_at.strftime('%Y-%m-%d %H:%M:%S') }}
{% endif %}
Reservation ID: #{{ reservation.id }}
{% endblock %}