From d0cf8426d0c64b734309525716870a7c699a903d Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Mon, 2 Jul 2018 22:07:59 -0400 Subject: [PATCH] Add Due Date column to ticket list and in description table for individual ticket page --- helpdesk/templates/helpdesk/ticket_desc_table.html | 5 +++++ helpdesk/templates/helpdesk/ticket_list.html | 2 ++ 2 files changed, 7 insertions(+) diff --git a/helpdesk/templates/helpdesk/ticket_desc_table.html b/helpdesk/templates/helpdesk/ticket_desc_table.html index bf9281dc..fb46e4ce 100644 --- a/helpdesk/templates/helpdesk/ticket_desc_table.html +++ b/helpdesk/templates/helpdesk/ticket_desc_table.html @@ -38,6 +38,11 @@ {{ ticket.resolution|force_escape|urlizetrunc:50|linebreaksbr }} {% endif %} + + + {% trans "Due Date" %} + {{ ticket.due_date|date:"r" }} ({{ ticket.due_date|naturaltime }}) + {% trans "Submitted On" %} {{ ticket.created|date:"r" }} ({{ ticket.created|naturaltime }}) diff --git a/helpdesk/templates/helpdesk/ticket_list.html b/helpdesk/templates/helpdesk/ticket_list.html index 3a49b64f..82797318 100644 --- a/helpdesk/templates/helpdesk/ticket_list.html +++ b/helpdesk/templates/helpdesk/ticket_list.html @@ -223,6 +223,7 @@ $(document).ready(function() { {% trans "Queue" %} {% trans "Status" %} {% trans "Created" %} + {% trans "Due Date" %} {% trans "Owner" %} @@ -236,6 +237,7 @@ $(document).ready(function() { {{ ticket.queue }} {{ ticket.get_status }} {{ ticket.created|naturaltime }} + {{ ticket.due_date|naturaltime }} {{ ticket.get_assigned_to }} {% endfor %}