{% extends "cosinnus_todo/base.html" %} {% load i18n humanize todo_tags cosinnus_tags djajax_tags thumbnail %} {% load static from staticfiles %} {% block extrahead %} {{ block.super }} {% endblock extrahead %} {% block page_title %} {% if active_todolist %}{{ active_todolist.title }} - {% endif %}{% trans "TodoEntries" %} {{ block.super }} {% endblock page_title %} {% block breadcrumb %} {{ block.super }} {% if active_todolist %}
  • {% trans "Todos" %}
  • {{ active_todolist.title }}
  • {% else %}
  • {% trans "Todos" %}
  • {% endif %} {% endblock %} {% block leftnav %} {% for todolist in todolists %} {% captureas href %}{{ todolist.get_absolute_url }}{% add_current_params %}{% endcaptureas %} {% captureas label %}{{ todolist.title }}{% endcaptureas %} {% captureas button_class %}{% if forloop.last %}regular-space{% else %}fine-space{% endif %}{% endcaptureas %} {% captureas folder_size %}{{ todolist.filtered_item_count }}{% endcaptureas %} {% captureas active %}{% if todolist == active_todolist %}True{% endif %}{% endcaptureas %} {% captureas button_template %}{% if user|can_create_objects_in:todolist.group %}cosinnus/leftnav_button_editable_folder.html{% else %}cosinnus/leftnav_button.html{% endif %}{% endcaptureas %} {% include button_template with active=active extra_classes=button_class icon_content=folder_size label=label href=href folder=todolist %} {% empty %} {% include 'cosinnus/common/empty_button.html' with message="There are no todolists yet." %} {% endfor %} {% if user|can_create_objects_in:group %}
    {% csrf_token %}
    {% endif %} {% endblock leftnav %} {% block content %}
    {% include 'cosinnus/common/filter_controls.html' %} {% if active_todolist and user|can_create_objects_in:group %}
    {% endif %} {% for todo in todos.all %} {% empty %} {% if todolists.count > 0 %} {% include 'cosinnus/common/empty_button.html' with message="There are no todos in this list." %} {% else %} {% include 'cosinnus/common/empty_button.html' with message="Please select or create a todo list." %} {% endif %} {% endfor %}
    {% include 'cosinnus/hierarchy/move_element_modal.html' %}
    {% endblock content %} {% block extrafooter %} {{ block.super }} {% endblock extrafooter %}