From f6a8c80755c110df028e698f71030e6aa93d22a0 Mon Sep 17 00:00:00 2001 From: Leon Harris Date: Tue, 26 Nov 2013 12:09:55 +0000 Subject: [PATCH] added bit of colour on the ticket detail page --- helpdesk/static/helpdesk/helpdesk-extend.css | 3 +- .../templates/helpdesk/ticket_desc_table.html | 38 +++++++++---------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/helpdesk/static/helpdesk/helpdesk-extend.css b/helpdesk/static/helpdesk/helpdesk-extend.css index 2d1d3b94..b1085b8d 100644 --- a/helpdesk/static/helpdesk/helpdesk-extend.css +++ b/helpdesk/static/helpdesk/helpdesk-extend.css @@ -38,7 +38,8 @@ Bootstrap overrides #helpdesk-nav-collapse #searchform { padding-top: 0; } - +#ticket-description {background-color: #FCF8E3;} +.followup.well {background-color: #f4f5ff;} /* Add your custom styles here */ diff --git a/helpdesk/templates/helpdesk/ticket_desc_table.html b/helpdesk/templates/helpdesk/ticket_desc_table.html index 9fde9971..ea0c3393 100644 --- a/helpdesk/templates/helpdesk/ticket_desc_table.html +++ b/helpdesk/templates/helpdesk/ticket_desc_table.html @@ -14,7 +14,26 @@ {% blocktrans with ticket.queue as queue %}Queue: {{ queue }}{% endblocktrans %} +{% for customfield in ticket.ticketcustomfieldvalue_set.all %} + {{ customfield.field.label }} + {% ifequal customfield.field.data_type "url" %}{{ customfield.value }}{% else %}{{ customfield.value }}{% endifequal %} +{% endfor %} + + + {% trans "Description" %} + + + {{ ticket.description|force_escape|urlizetrunc:50|linebreaksbr }} + + +{% if ticket.resolution %} + {% trans "Resolution" %}{% ifequal ticket.get_status_display "Resolved" %} {% trans "Accept" %}{% endifequal %} + + + {{ ticket.resolution|force_escape|urlizetrunc:50|linebreaksbr }} +{% endif %} + {% trans "Submitted On" %} {{ ticket.created|date:"r" }} ({{ ticket.created|timesince }} ago) @@ -59,24 +78,5 @@ -{% for customfield in ticket.ticketcustomfieldvalue_set.all %} - - {{ customfield.field.label }} - {% ifequal customfield.field.data_type "url" %}{{ customfield.value }}{% else %}{{ customfield.value }}{% endifequal %} -{% endfor %} - - - {% trans "Description" %} - - - {{ ticket.description|force_escape|urlizetrunc:50|linebreaksbr }} - - -{% if ticket.resolution %} - {% trans "Resolution" %}{% ifequal ticket.get_status_display "Resolved" %} {% trans "Accept" %}{% endifequal %} - - - {{ ticket.resolution|force_escape|urlizetrunc:50|linebreaksbr }} -{% endif %}