{% load i18n static %} {% if grouped_tasks %} {% for task, subtasks in grouped_tasks.items %} {% with group=subtasks.0.group todolist=subtasks.0.todolist %} {% include 'cosinnus_todo/attached_todos.html' with todos=subtasks no_indent=1 %} {% comment %}
{% for subtask in subtasks %} {% if subtask.more_field %} {% else %} {% endif %} {% endfor %} {% endcomment %} {% endwith %} {% endfor %} {% else %} {% endif %}