{% extends "ToDo/base.html" %} {% block content %} {% load crispy_forms_tags %} {% load filename %} {% load tz %}

{% if not todo.is_checked %} {{ todo.title }} {% if request.user_agent.is_mobile %}
{% endif %} {% else %} {{ todo.title }} {% if request.user_agent.is_mobile %}
{% endif %} {% endif %} {% if todo.important %} {% else %} {% endif %}
{% if todo.parent_list %} ({{ todo.parent_list.title }}) {% endif %}

Created on: {{ todo.date_created|timezone:request.user.profile.timezone|date:"F d" }}
{% if todo.is_checked %} Completed on: {{ todo.date_completed|timezone:request.user.profile.timezone|date:"F d" }} {% endif %}
{% if todo.due_date != None %}

Due on: {{ todo.due_date|timezone:request.user.profile.timezone|date:"F d" }}

{% else %}

{% csrf_token %}
Due in (days) {{ due_form|crispy }}

{% endif %} {% if subtasks %}

Subtasks for this task:

{% if percentage != 0 %}
Your progress:
{{ percentage }}%
{% else %}
{% endif %} {% else %}

{% endif %}

{% csrf_token %}
New subtask {{ subtask_form|crispy }}


{% if todo.has_notes %}

Notes for this task:


{{ note.content|linebreaks }}


Notes added on: {{ note.date_added|timezone:request.user.profile.timezone|date:"F d, Y" }}
{% if note.date_edited != note.date_added %} Notes edited on: {{ note.date_edited|timezone:request.user.profile.timezone|date:"F d, Y" }} {% endif %}

{% else %}

{% csrf_token %}
Add notes {{ note_form|crispy }}
{% endif %}


Attachments

{% if attachments %}
{% for attachment in attachments %} {% endfor %}
File Uploaded on View/Download Delete
{{ attachment.content|getfilename }} {{ attachment.uploaded_on|timezone:request.user.profile.timezone|date:"F d"}} Click me
{% endif %}

{% csrf_token %}
Add documents {{ attachment_form|crispy }}



{% endblock content %}