From dce77319577c584f4cbd9b3adf89f475909a9eb6 Mon Sep 17 00:00:00 2001 From: Ross Poulton Date: Tue, 15 Jan 2008 00:02:06 +0000 Subject: [PATCH] * Further form improvements, this time in the 'Edit Ticket' area. --- forms.py | 2 +- htdocs/helpdesk.css | 8 ++++ templates/helpdesk/ticket.html | 87 ++++++++++++++++++++-------------- 3 files changed, 61 insertions(+), 36 deletions(-) diff --git a/forms.py b/forms.py index e3a7539a..3d9b30b3 100644 --- a/forms.py +++ b/forms.py @@ -99,6 +99,6 @@ class TicketForm(forms.Form): if t.submitter_email: from helpdesk.lib import send_multipart_mail - send_multipart_mail('helpdesk/emails/submitter_newticket', context, '%s %s' % (t.ticket, t.title), t.submitter_email,, q.from_address) + send_multipart_mail('helpdesk/emails/submitter_newticket', context, '%s %s' % (t.ticket, t.title), t.submitter_email, q.from_address) return t diff --git a/htdocs/helpdesk.css b/htdocs/helpdesk.css index 6da57b91..b07db72b 100644 --- a/htdocs/helpdesk.css +++ b/htdocs/helpdesk.css @@ -47,6 +47,10 @@ dd.form_help_text { font-size: 95%; } +dt { + padding-top: 8px; +} + .row_tablehead { background-color: #6593C0; font-weight: bold; @@ -181,3 +185,7 @@ a img { border: none; padding: 2px; } + +textarea#commentBox { + width: 100%; +} diff --git a/templates/helpdesk/ticket.html b/templates/helpdesk/ticket.html index 7f532541..8b5b30f5 100644 --- a/templates/helpdesk/ticket.html +++ b/templates/helpdesk/ticket.html @@ -6,7 +6,8 @@ $(document).ready(function() { nic = new nicEditor({buttonList: ['bold','italic','underline','strikeThrough','undo','redo','subscript','superscript','html']}).panelInstance('commentBox'); $("#ShowFurtherEditOptions").click(function() { - $("#FurtherEditOptions").toggle(); + $("#FurtherEditOptions").fadeIn(); + $("#ShowFurtherOptPara").hide(); return false; }); $('#id_preset').change(function() { @@ -19,14 +20,13 @@ }); }); - {% endblock %} {% block helpdesk_body %} - + @@ -80,52 +80,69 @@ Changed {{ change.field }} from {{ change.old_value }} to {{ change.new_value }} {% endfor %} {% endif %} -

Respond to this ticket

- + - -

New Status -{% ifequal ticket.status 1 %} - » - » - -{% endifequal %} -{% ifequal ticket.status 2 %} - » - » - -{% endifequal %} -{% ifequal ticket.status 3 %} - « - » - -{% endifequal %} +

+
+
(Optional)
+
+
Selecting a pre-set reply will over-write your comment below. You can then modify the pre-set reply to your liking before saving this update.
-{% ifequal ticket.status 4 %} - « - -{% endifequal %} +
+
+
You can use the ticket and queue template variables in your message.
-

Change Other Details

+
+ {% ifequal ticket.status 1 %} +
» + » +
+ {% endifequal %} + {% ifequal ticket.status 2 %} +
» + » +
+ {% endifequal %} + {% ifequal ticket.status 3 %} +
« + » +
+ {% endifequal %} + {% ifequal ticket.status 4 %} +
« +
+ {% endifequal %} + +
(Optional)
+
+
If this is public, the submitter will be e-mailed your comment or resolution.
+
+ +

Change Further Details »

- +
- + +
{{ ticket.id }}. {{ ticket.title }} [{{ ticket.get_status_display }}]EditDelete
Queue: {{ ticket.queue }}
Queue: {{ ticket.queue }}
Submitted On