From bc8adb63f559d37087c0692c1e368fdc7ed0536e Mon Sep 17 00:00:00 2001 From: Scot Hacker Date: Tue, 20 Mar 2018 23:57:37 -0700 Subject: [PATCH] Bootstrap task detail WIP --- todo/templates/todo/task_detail.html | 80 ++++++++++++++-------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/todo/templates/todo/task_detail.html b/todo/templates/todo/task_detail.html index 97fbed6..c150b6d 100644 --- a/todo/templates/todo/task_detail.html +++ b/todo/templates/todo/task_detail.html @@ -1,51 +1,51 @@ {% extends "todo/base.html" %} -{% block title %}Task: - {{ task.title }} -{% endblock %} +{% block title %}Task:{{ task.title }}{% endblock %} {% block content %} -

{{ task }}

- -
- {% csrf_token %} - -

- → Click to edit details ← -

- -

- In list: - - {{ task.task_list }} -
- - Assigned to: - {% if task.assigned_to %} - {{ task.assigned_to.get_full_name }} - {% else %} - Anyone +

+
+
+

{{ task.title }}

+ {% if task.note %} +

{{ task.note|safe|urlize|linebreaks }}

{% endif %} -
+
+
- Created by: - {{ task.created_by.first_name }} - {{ task.created_by.last_name }}
+
+
    +
  • + 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 }} +
  • +
  • + Completed: {{ task.completed|yesno:"Yes,No" }} +
  • +
  • + In list: + + {{ task.task_list }} + +
  • +
+
+
- Due date: - {{ task.due_date }}
- - Completed: - {{ form.completed|yesno:"Yes,No" }}
-

- - {% if task.note %} -
- Note: - {{ task.note|safe|urlize|linebreaks }}
- {% endif %} + + {% comment %} Needs form tag {% endcomment %}

Edit Task

@@ -96,7 +96,7 @@

- +
{% if comment_list %}