{# The car park. See board/plan/_desk.html.twig for how geometry, Resource.svgElementId and the box height relate; found by convention from ResourceType::PARKING->value. #} {% import 'board/plan/_spot.html.twig' as plan %} {% set geometry = { 'parking-01': { x: 40, y: 50 }, 'parking-02': { x: 40, y: 140 }, 'parking-03': { x: 40, y: 230 }, 'parking-04': { x: 280, y: 50 }, 'parking-05': { x: 280, y: 140 }, 'parking-06': { x: 280, y: 230 } } %} {% set time_params = selected_time.allDay ? {} : { from: selected_time.start, to: selected_time.end } %} Parkplatz {# The lane between the two rows. #} {% for resource in resources %} {% if resource.svgElementId and geometry[resource.svgElementId] is defined %} {{ plan.spot(spots[resource.id], geometry[resource.svgElementId], 200, 78, selected_date, is_past, time_params) }} {% endif %} {% endfor %}