{% load i18n serviceform_tags %}

{% trans "All activities" %}

{% for c1 in service_form.sub_items %}
{{ c1.id_display }} {{ c1.name }} {% responsible_link c1 %}
{% for c2 in c1.sub_items %}
{{ c2.id_display }} {{ c2.name }} {% responsible_link c2 %}
{% for a in c2.sub_items %}
{{ a.id_display }}. {{ a.name }} {% responsible_link a %} {% if not a.has_choices %} {% participation_items a as p_items %} ({{ p_items|length }}{%if a.people_needed%}/{{ a.people_needed }}{%endif%}) {% endif %}
{% if a.has_choices %} {% for c in a.sub_items %} {% participation_items c as p_items %}
{{ c.id_display }}. {{ c.name }} {% responsible_link c %} ({{ p_items|length }}{%if c.people_needed%}/{{ c.people_needed }}{%endif%})
{% for pc in p_items %} {% include "serviceform/reports/snippets/_participant_row.html" with item=pc participant=pc.cached_participant %} {% endfor %} {% endfor %} {% else %} {% for pa in p_items %} {% include "serviceform/reports/snippets/_participant_row.html" with item=pa participant=pa.cached_participant %} {% endfor %} {% endif %} {% endfor %} {% endfor %} {% endfor %}
{% include "serviceform/reports/contents/_report_sidebar.html" %}