From 7c14e4733cbbfe650adb465d76a82fe15f9fb548 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 21 Jan 2021 17:12:05 -0500 Subject: [PATCH] Split tool/task list items into component templates --- tasks/templates/tasks/components/task_li.djhtml | 6 ++++++ tasks/templates/tasks/components/tool_li.djhtml | 3 +++ tasks/templates/tasks/index.djhtml | 4 ++-- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 tasks/templates/tasks/components/task_li.djhtml create mode 100644 tasks/templates/tasks/components/tool_li.djhtml diff --git a/tasks/templates/tasks/components/task_li.djhtml b/tasks/templates/tasks/components/task_li.djhtml new file mode 100644 index 0000000..cb4ad01 --- /dev/null +++ b/tasks/templates/tasks/components/task_li.djhtml @@ -0,0 +1,6 @@ +
  • + + {{ task.name }} + + - last completed {{ task.last_event.date|date|default:"never"}}, next required {{ task.next_recurrence|date|default:"never" }} +
  • diff --git a/tasks/templates/tasks/components/tool_li.djhtml b/tasks/templates/tasks/components/tool_li.djhtml new file mode 100644 index 0000000..daff522 --- /dev/null +++ b/tasks/templates/tasks/components/tool_li.djhtml @@ -0,0 +1,3 @@ +
  • + {{ tool.name }} +
  • diff --git a/tasks/templates/tasks/index.djhtml b/tasks/templates/tasks/index.djhtml index 28cf054..8c23c25 100644 --- a/tasks/templates/tasks/index.djhtml +++ b/tasks/templates/tasks/index.djhtml @@ -6,7 +6,7 @@

    Tools