diff --git a/forms.py b/forms.py index 1a5d6601..a74f267a 100644 --- a/forms.py +++ b/forms.py @@ -47,6 +47,11 @@ class TicketForm(forms.Form): assigned_to = forms.ChoiceField(choices=(), required=False, label=u'Case owner') + + priority = forms.ChoiceField(choices=Ticket.PRIORITY_CHOICES, + required=False, + initial='3', + label=u'Priority') def save(self, user): """ @@ -60,6 +65,7 @@ class TicketForm(forms.Form): status = Ticket.OPEN_STATUS, queue = q, description = self.cleaned_data['body'], + priority = self.cleaned_data['priority'], ) if self.cleaned_data['assigned_to']: try: diff --git a/htdocs/helpdesk.css b/htdocs/helpdesk.css index 6d32c0bb..09c2cd8c 100644 --- a/htdocs/helpdesk.css +++ b/htdocs/helpdesk.css @@ -141,3 +141,28 @@ a.ticket_link_status { color: #369; font: 12pt Garamond; } + +.priority1 { + background-color: #fcc; +} + +.priority2 { + background-color: #FFE5CE; +} + +.priority3 { + background-color: #CEE0FF; +} + +.priority4 { + background-color: #CEF5FF; +} + +.prority5 { + background-color: #CEE0FF; +} + +.priority1, .priority2, .priority3, .priority4, .priority5 { + color: #6C79A0; + border-bottom: solid #d5e7fd 1px; +} diff --git a/templates/helpdesk/create_ticket.html b/templates/helpdesk/create_ticket.html index 3ea1c4aa..277acba1 100644 --- a/templates/helpdesk/create_ticket.html +++ b/templates/helpdesk/create_ticket.html @@ -31,6 +31,11 @@