{% extends "dashboard_base.html" %} {% block title %}{{ t("bookings-page-title") }} — calrs{% endblock %} {% block dashboard_content %} {% if error_message %}

{{ error_message }}

{% endif %} {% if pending_bookings %}

{{ t("bookings-pending-approval") }}

{% for b in pending_bookings %}
{{ t("bookings-with", title='' ~ (b.event_title | escape) ~ '', guest=b.guest_name | escape) | safe }}
{{ b.start_at }} · {{ b.guest_email }}
{% if b.start_at_guest %}
{{ t("bookings-guest-booked") }} {{ b.start_at_guest }}
{% endif %} {% if b.resource_name %}
{{ t("bookings-resource") }} {{ b.resource_name }}
{% endif %}
{{ t("bookings-reschedule") }}
{% endfor %}
{% endif %} {% if claimable_bookings is defined and claimable_bookings %}

{{ t("bookings-available-to-claim") }}

{% for b in claimable_bookings %}
{{ t("bookings-with", title='' ~ (b.event_title | escape) ~ '', guest=b.guest_name | escape) | safe }} {{ b.team_name }}
{{ b.start_at }} · {{ b.guest_email }}
{% if b.start_at_guest %}
{{ t("bookings-guest-booked") }} {{ b.start_at_guest }}
{% endif %}
{% endfor %}
{% endif %}

{{ t("bookings-upcoming") }}

{% if bookings %} {% for b in bookings %}
{{ t("bookings-with", title='' ~ (b.event_title | escape) ~ '', guest=b.guest_name | escape) | safe }} {% if b.awaiting_reschedule is defined and b.awaiting_reschedule %} {{ t("bookings-badge-awaiting-reschedule") }} {% endif %}
{{ b.start_at }} · {{ b.guest_email }}{% if b.guest_phone %} · {{ b.guest_phone }}{% endif %}
{% if b.start_at_guest %}
{{ t("bookings-guest-booked") }} {{ b.start_at_guest }}
{% endif %} {% if b.resource_name %}
{{ t("bookings-resource") }} {{ b.resource_name }}
{% endif %}
{% if not (b.awaiting_reschedule is defined and b.awaiting_reschedule) %} {{ t("bookings-reschedule") }} {% endif %}
{% endfor %} {% else %}
📋
{{ t("bookings-empty", link='' ~ (t("bookings-empty-link-label") | escape) ~ '') | safe }}
{% endif %}
{% endblock %}