{% extends "todo/base.html" %} {% block title %}Task:{{ task.title }}{% endblock %} {% block extrahead %} {{ form.media }} {{ merge_form.media }} {% endblock %} {% block content %}

{{ task.title }}

{% if task.note %}
{{ task.note|safe|urlize|linebreaks }}
{% endif %}
  • {% csrf_token %}
    {% csrf_token %}
  • Assigned to: {% if task.assigned_to %} {{ task.assigned_to.get_full_name }} {% else %} Anyone {% endif %}
  • Reported by: {{ task.created_by.get_full_name }}
  • Due date: {{ task.due_date }}
  • {% if task.completed %}
  • Completed on: {{ task.completed_date}}
  • {% else %}
  • Completed: {{ task.completed|yesno:"Yes,No" }}
  • {% endif %}
  • In list: {{ task.task_list }}
{# Task edit / new task form #} {% include 'todo/include/task_edit.html' %} {% if merge_form is not None %}
Merge task

Merging is a destructive operation. This task will not exist anymore, and comments will be moved to the target task.

{% csrf_token %} {% for field in merge_form.visible_fields %}

{{ field.errors }} {{ field }}

{% endfor %}
{% endif %}
{% if attachments_enabled %}
Attachments
{% if task.attachment_set.count %}
{% for attachment in task.attachment_set.all %} {% endfor %}
File Uploaded By Type Remove
{{ attachment.filename }} {{ attachment.timestamp }} {{ attachment.added_by.get_full_name }} {{ attachment.extension.lower }}
{% csrf_token %}
{% endif %}
{% csrf_token %}
{% endif %}
Add comment
{% csrf_token %}
{% if comment_list %}
Comments on this task
{% for comment in comment_list %}
{% if comment.email_message_id %} email {% endif %} {{ comment.author_text }}
{{ comment.date|date:"F d Y P" }}
{{ comment.body|safe|urlize|linebreaks }}
{% endfor %} {% else %}
No comments (yet).
{% endif %}
{% endblock %} {% block extra_js %}{% endblock extra_js %}