{% import "macros.j2" as macros %} {% macro teamEntries(event, work_type) -%} {% for entry in event.team | selectattr("work_type", "equalto", work_type)%}
{{ entry.person_name }} {% if user -%} {% endif -%}
{% endfor %} {%- endmacro %} {% extends "base.html" %} {% block content %}

{{ event.title }}

{{ event.event_time.strftime('%A, %d.%m.%Y %H:%M Uhr') }}

{% if event.organizer_name %}

Organisiert von {{ event.organizer_name }}

{% endif %}

{{ event.description }}


{% if message %} {% endif %}

Anmeldungen

{% if not user %}
Das Löschen von Anmeldungen und Dienstanmeldungen ist nur möglich, wenn du in der Allmende-Cloud eingeloggt bist.
Geht dazu auf allmende.cloud und melde dich an.
{% endif %}

Anmeldung schließt {{ event.registration_deadline.strftime('%A, %d.%m.%Y, %H:%M Uhr') }}

{% if event.recipe_link %} Original Rezept ansehen {% endif %}
{% if user -%} Event bearbeiten {% else -%} {% endif -%}
{% if user and user.admin %}
{% endif %}
Dienste
Kochen: {% if event.team_min_reached("cooking") %}✅{% endif %}
{{ teamEntries(event, "cooking") }}

Spülen: {% if event.team_min_reached("dishes") %}✅{% endif %}
{{ teamEntries(event, "dishes") }}

Tische vorbereiten: {% if event.team_min_reached("tables") %}✅{% endif %}
{{ teamEntries(event, "tables") }}
Zusammenfassung
Erwachsene: {{ event.registrations | sum(attribute="num_adult_meals") }}
Kinder: {{ event.registrations | sum(attribute="num_children_meals") }}
Kleinkinder: {{ event.registrations | sum(attribute="num_small_children_meals") }}
Gesamt: {{ event.registrations | sum(attribute="num_adult_meals") + event.registrations | sum(attribute="num_children_meals") +event.registrations | sum(attribute="num_small_children_meals")}}
{% if user %}{% endif %} {% for reg in event.registrations %} {% if user %}{% endif %} {% endfor %}
Haushalt Erwachsene Kinder Kleinkinder KommentarLöschen
{{ reg.household.name }} {{ reg.num_adult_meals }} {{ reg.num_children_meals }} {{ reg.num_small_children_meals }} {% if reg.comment %}{{ reg.comment }}{% endif %}
{% for reg in event.registrations %}
{{ reg.household.name }}
{% if user %} {% endif -%}
Erwachsene
{{ reg.num_adult_meals }}
Kinder
{{ reg.num_children_meals }}
Kleinkinder
{{ reg.num_small_children_meals }}
Kommentar
{{ reg.comment }}
{% endfor %}
{{ macros.login_info_modal() }} {% endblock %}