{% extends './base.html' %} {% block title %} Task: {{ task.title }} | Tasks Manager {% endblock %} {% block content %}

{{ task.title }}

{% if task.desc %} {{ task.desc|safe|urlize|linebreaks }} {% endif %} {# user having task assigned to and task creator can mark task as In-rogress or Completed #} {% if user in task.assigned_to.all or user == task.creator %}
{% if task.status == 'PLAN' and user in task.assigned_to.all %} {% endif %} {% if task.status == 'PROG' %} {% endif %} {# Only task creator can edit the task #} {% if user == task.creator and task.status == 'PLAN' %} {% endif %}
{% endif %}

Created By : {{ task.creator }}

Status : {{ task.get_status_display }}

Assigned To :

{% if task.team %}

Assigned to team : {{ task.team }}

{% endif %}

Planned on : {{ task.planned_date }}

Due Date : {{ task.due_date }}

{% if task.status == 'PROG' or task.status == 'COMP' %}

Accepted on : {{ task.accepted_date }}

Accepted By : {{ task.accepted_by }}

{% endif %} {% if task.status == 'COMP' %}

Completed on : {{ task.completed_date }}

{% endif %}
Add comment:
{% csrf_token %}

Comments on this task:


{% for comment in task.comment_set.all %}

{{ comment.author }}, {{ comment.time }}

{{ comment.body|safe|urlize|linebreaks }}
{% empty %} No Comments (yet).
{% endfor %}
{% endblock %}