{% load i18n static cosinnus_tags djajax_tags thumbnail %} {% with todo=object %}
{% if user|has_write_access:todo %} {% captureas modal_id %}deleteTodo_{{todo.pk}}{% endcaptureas %} {% captureas title %}{% trans "Delete todo" %}{% endcaptureas %} {% captureas label %}{% trans "Do you really want to delete this todo?" %}{% endcaptureas %} {% captureas action %}{% group_url 'cosinnus:todo:entry-delete' group=todo.group slug=todo.slug%}{% endcaptureas %} {% include "cosinnus/modal_box.html" with id=modal_id label=label title=title form_action=action %} {% endif %}
{% if todo.title %}

{% if todo.is_completed %}{% endif %} {{ todo.title }} {% if todo.is_completed %}{% endif %}

{% endif %} {% if todo.note %}
{{ todo.note|textfield }}
{% endif %}
{% include 'cosinnus/media_tags_readonly.html' with object=todo list_view="True" %} {% if user|has_write_access:todo %} {% if todo.is_completed %}
{% csrf_token %}
{% else %}
{% csrf_token %}
{% endif %} {% if user|has_write_access:todo %} {% endif %} {% endif %} {% include 'cosinnus/feedback/report_button_btn.html' with object=todo %}
{% if todo.attached_images %} {% include 'cosinnus/common/attached_images_gallery.html' with object=todo max_images=3 %} {% endif %} {% include 'cosinnus_todo/todo_comments.html' with todo=todo full_view="True" comments_expanded="True" %}
{% endwith %}