{# The frame around a plan: heading, legend, span picker. The drawing itself lives in board/plan/_.html.twig and is included by convention, so a new ResourceType needs a new partial there and nothing else. Colouring needs no JavaScript at all: the plan is re-rendered server side for the selected day and span, so free/taken/yours is decided in Twig. Note "free" is always relative to the span in the header -- a desk booked 09:00-13:00 is free for an afternoon board and taken for an all-day one. #}

{{ selected_date|format_datetime(pattern: 'EEEE, d. MMMM y') }}

frei teilweise frei belegt deine
{% include 'board/_timerange.html.twig' %} {% if is_past %}

Vergangener Tag — hier lässt sich nichts mehr buchen.

{% endif %} {% if resources is empty %}

Für diesen Bereich ist noch nichts eingerichtet.

{% else %} {% include 'board/plan/_' ~ type.value ~ '.html.twig' %} {% endif %}