From 2577d3704a70d1255021ff5ea4fdc57a63b99e1e Mon Sep 17 00:00:00 2001 From: Andreas Kotowicz Date: Thu, 3 Feb 2011 12:42:51 +0100 Subject: [PATCH] introduce status DUPLICATE. This is somethimes useful. The number of the original bug can written inside the 'comment / resolution' field. --- helpdesk/models.py | 2 ++ helpdesk/templates/helpdesk/base.html | 2 +- helpdesk/templates/helpdesk/ticket.html | 10 ++++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/helpdesk/models.py b/helpdesk/models.py index 9a34a585..faa1e601 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -230,12 +230,14 @@ class Ticket(models.Model): REOPENED_STATUS = 2 RESOLVED_STATUS = 3 CLOSED_STATUS = 4 + DUPLICATE_STATUS = 5 STATUS_CHOICES = ( (OPEN_STATUS, _('Open')), (REOPENED_STATUS, _('Reopened')), (RESOLVED_STATUS, _('Resolved')), (CLOSED_STATUS, _('Closed')), + (DUPLICATE_STATUS, _('Duplicate')), ) PRIORITY_CHOICES = ( diff --git a/helpdesk/templates/helpdesk/base.html b/helpdesk/templates/helpdesk/base.html index 58278b0b..aad40318 100644 --- a/helpdesk/templates/helpdesk/base.html +++ b/helpdesk/templates/helpdesk/base.html @@ -41,7 +41,7 @@
  • {% trans "Stats" %}
  • {% if user_saved_queries_ %}
  • Load Saved Query
  • - {% endif %} + {% endif %}
  • {% trans "Logout" %}
  • {% if not query %}
  • {% csrf_token %}
  • {% endif %} diff --git a/helpdesk/templates/helpdesk/ticket.html b/helpdesk/templates/helpdesk/ticket.html index 653a2f55..04731ca9 100644 --- a/helpdesk/templates/helpdesk/ticket.html +++ b/helpdesk/templates/helpdesk/ticket.html @@ -85,12 +85,14 @@ {% ifequal ticket.status 1 %}
    » » -
    + » + {% endifequal %} {% ifequal ticket.status 2 %}
    » » -
    + » + {% endifequal %} {% ifequal ticket.status 3 %}
    « @@ -101,6 +103,10 @@
    «
    {% endifequal %} + {% ifequal ticket.status 5 %} +
    « +
    + {% endifequal %}
    (Optional)