{# Component for displaying people count/attendance charts and tables #} {# Expects: event, people_count_by_day, all_days, all_times, people_count_table, people_count_by_place, people_counts_by_event_day #} {# People count over time - all days in one graph #} {% if people_count_by_day %}
Personenzahlen über Zeit
{# Stacked area charts - one per day #} {% for day in all_days %}
{{ day }} - Nach Ort
{% endfor %} {# Table 1: Aggregated sums #}
Personenzahlen - Summen
{% for time in all_times %} {% endfor %} {% for day in all_days %} {% for time in all_times %} {% endfor %} {% endfor %}
Tag{{ time }}
{{ day }} {% if people_count_table.get(day, {}).get(time) %} {{ people_count_table[day][time] }} {% else %} - {% endif %}
{# Table 2: By place/room #}
Personenzahlen - Nach Ort
{% for time in all_times %} {% endfor %} {% for day in all_days %} {% for time in all_times %} {% endfor %} {% endfor %}
Tag{{ time }}
{{ day }} {% if people_count_by_place.get(day, {}).get(time) %} {% for entry in people_count_by_place[day][time] %}
{{ entry.place }}: {{ entry.count }}
{% endfor %} {% else %} - {% endif %}
{# Cross-event people count comparison #} {% if people_counts_by_event_day %}
Personenzahlen über Zeit - Vergleich aller Events
{% endif %} {% endif %}