diff --git a/helpdesk/models.py b/helpdesk/models.py index 8599093a..9ac917b6 100644 --- a/helpdesk/models.py +++ b/helpdesk/models.py @@ -461,12 +461,6 @@ class Ticket(models.Model): return u"%s-%s" % (self.queue.slug, self.id) ticket_for_url = property(_get_ticket_for_url) - def _get_priority_img(self): - """ Image-based representation of the priority """ - from django.conf import settings - return u"%shelpdesk/priorities/priority%s.png" % (settings.MEDIA_URL, self.priority) - get_priority_img = property(_get_priority_img) - def _get_priority_css_class(self): """ Return the boostrap class corresponding to the priority. @@ -475,6 +469,8 @@ class Ticket(models.Model): return "warning" elif self.priority == 1: return "danger" + elif self.priority == 5: + return "success" else: return "" get_priority_css_class = property(_get_priority_css_class) diff --git a/helpdesk/static/helpdesk/buttons/accept.png b/helpdesk/static/helpdesk/buttons/accept.png deleted file mode 100644 index 68dcd1be..00000000 Binary files a/helpdesk/static/helpdesk/buttons/accept.png and /dev/null differ diff --git a/helpdesk/static/helpdesk/buttons/button_template.psd b/helpdesk/static/helpdesk/buttons/button_template.psd deleted file mode 100644 index e2f86273..00000000 Binary files a/helpdesk/static/helpdesk/buttons/button_template.psd and /dev/null differ diff --git a/helpdesk/static/helpdesk/buttons/button_template.txt b/helpdesk/static/helpdesk/buttons/button_template.txt deleted file mode 100644 index dd602c55..00000000 --- a/helpdesk/static/helpdesk/buttons/button_template.txt +++ /dev/null @@ -1,5 +0,0 @@ -* Use this template to create new buttons -* Typeface: Delicious, Roman, 12pt, Sharp Anti-Aliasing - http://www.josbuivenga.demon.nl/delicious.html -* Icons: Diagona (10px versions) - http://www.pinvoke.com/ - I purchased these before they were creative-commons, I believe this gives me rights to use them without attribution. diff --git a/helpdesk/static/helpdesk/buttons/delete.png b/helpdesk/static/helpdesk/buttons/delete.png deleted file mode 100644 index 3168bf9f..00000000 Binary files a/helpdesk/static/helpdesk/buttons/delete.png and /dev/null differ diff --git a/helpdesk/static/helpdesk/buttons/edit.png b/helpdesk/static/helpdesk/buttons/edit.png deleted file mode 100644 index 5b9fe73b..00000000 Binary files a/helpdesk/static/helpdesk/buttons/edit.png and /dev/null differ diff --git a/helpdesk/static/helpdesk/buttons/take.png b/helpdesk/static/helpdesk/buttons/take.png deleted file mode 100644 index cea725f4..00000000 Binary files a/helpdesk/static/helpdesk/buttons/take.png and /dev/null differ diff --git a/helpdesk/static/helpdesk/priorities/priority1.png b/helpdesk/static/helpdesk/priorities/priority1.png deleted file mode 100644 index c09c1954..00000000 Binary files a/helpdesk/static/helpdesk/priorities/priority1.png and /dev/null differ diff --git a/helpdesk/static/helpdesk/priorities/priority2.png b/helpdesk/static/helpdesk/priorities/priority2.png deleted file mode 100644 index c109d039..00000000 Binary files a/helpdesk/static/helpdesk/priorities/priority2.png and /dev/null differ diff --git a/helpdesk/static/helpdesk/priorities/priority3.png b/helpdesk/static/helpdesk/priorities/priority3.png deleted file mode 100644 index d0c27dff..00000000 Binary files a/helpdesk/static/helpdesk/priorities/priority3.png and /dev/null differ diff --git a/helpdesk/static/helpdesk/priorities/priority4.png b/helpdesk/static/helpdesk/priorities/priority4.png deleted file mode 100644 index 25264968..00000000 Binary files a/helpdesk/static/helpdesk/priorities/priority4.png and /dev/null differ diff --git a/helpdesk/static/helpdesk/priorities/priority5.png b/helpdesk/static/helpdesk/priorities/priority5.png deleted file mode 100644 index 24f9680c..00000000 Binary files a/helpdesk/static/helpdesk/priorities/priority5.png and /dev/null differ diff --git a/helpdesk/static/helpdesk/priorities/readme.txt b/helpdesk/static/helpdesk/priorities/readme.txt deleted file mode 100644 index a468323b..00000000 --- a/helpdesk/static/helpdesk/priorities/readme.txt +++ /dev/null @@ -1,4 +0,0 @@ -* Typeface: Delicious, Roman, 14pt, Sharp Anti-Aliasing - http://www.josbuivenga.demon.nl/delicious.html -* Icons: Diagona (16px versions) - http://www.pinvoke.com/ - I purchased these before they were creative-commons, I believe this gives me rights to use them without attribution. diff --git a/helpdesk/templates/helpdesk/create_ticket.html b/helpdesk/templates/helpdesk/create_ticket.html index fbf63de1..be2472d6 100644 --- a/helpdesk/templates/helpdesk/create_ticket.html +++ b/helpdesk/templates/helpdesk/create_ticket.html @@ -3,35 +3,44 @@ {% block helpdesk_title %}{% trans "Create Ticket" %}{% endblock %} {% block helpdesk_body %} -
{% trans "Unless otherwise stated, all fields are required." %} {% trans "Please provide as descriptive a title and description as possible." %}
- -{% trans "Welcome to your Helpdesk Dashboard! From here you can quickly see tickets submitted by you, tickets you are working on, and those tickets that have no owner." %}
-{% include 'helpdesk/include/summary.html' %} - {% include 'helpdesk/include/stats.html' %} {% if all_tickets_reported_by_current_user %} diff --git a/helpdesk/templates/helpdesk/include/summary.html b/helpdesk/templates/helpdesk/include/summary.html deleted file mode 100644 index f6388e5d..00000000 --- a/helpdesk/templates/helpdesk/include/summary.html +++ /dev/null @@ -1,42 +0,0 @@ -{% load i18n %} - -{% trans "Queue" %} | -{% trans "Open" %} | -{% trans "Resolved" %} | -{% trans "Closed" %} | -||
---|---|---|---|---|---|
{{ queue.name }} | -{% if queue.open %}{% endif %}{{ queue.open }}{% if queue.open %}{% endif %} | -{% if queue.resolved %}{% endif %}{{ queue.resolved }}{% if queue.resolved %}{% endif %} | -{% if queue.closed %}{% endif %}{{ queue.closed }}{% if queue.closed %}{% endif %} | -||
{% trans "There are no unassigned tickets." %} |
{{ ticket.id }}. {{ ticket.title }} [{{ ticket.get_status }}] | |
{% blocktrans with ticket.queue as queue %}Queue: {{ queue }}{% endblocktrans %} | |
---|---|
{{ customfield.field.label }} | -{% ifequal customfield.field.data_type "url" %}{{ customfield.value }}{% else %}{{ customfield.value }}{% endifequal %} | -
{% trans "Description" %} | -|
{{ ticket.description|force_escape|urlizetrunc:50|linebreaksbr }} | -
{{ ticket.id }}. {{ ticket.title }} [{{ ticket.get_status }}] | |
{% blocktrans with ticket.queue as queue %}Queue: {{ queue }}{% endblocktrans %} | |
---|---|
{{ customfield.field.label }} | +{% ifequal customfield.field.data_type "url" %}{{ customfield.value }}{% else %}{{ customfield.value }}{% endifequal %} | +
{% trans "Description" %} | +|
{{ ticket.description|force_escape|urlizetrunc:50|linebreaksbr }} | +|
{% trans "Resolution" %}{% ifequal ticket.get_status_display "Resolved" %} {% endifequal %} | -|
{{ ticket.resolution|force_escape|urlizetrunc:50|linebreaksbr }} | -|
{% trans "Submitted On" %} | -{{ ticket.created|date:"r" }} ({{ ticket.created|naturaltime }}) | -
{% trans "Resolution" %}{% ifequal ticket.get_status_display "Resolved" %} {% endifequal %} | +|
{{ ticket.resolution|force_escape|urlizetrunc:50|linebreaksbr }} | +|
{% trans "Submitted On" %} | +{{ ticket.created|date:"r" }} ({{ ticket.created|naturaltime }}) | +
{% trans "Assigned To" %} | -{{ ticket.get_assigned_to }}{% ifequal ticket.get_assigned_to _('Unassigned') %} {% endifequal %} | -
{% trans "Assigned To" %} | +{{ ticket.get_assigned_to }}{% ifequal ticket.get_assigned_to _('Unassigned') %} {% endifequal %} | +
{% trans "Submitter E-Mail" %} | -{{ ticket.submitter_email }}{% if user.is_superuser %} {% trans "Ignore" %}{% endif %} | -
{% trans "Submitter E-Mail" %} | +{{ ticket.submitter_email }}{% if user.is_superuser %} {% endif %} | +
{% trans "Priority" %} | -{{ ticket.get_priority_display }} | -
{% trans "Priority" %} | +{{ ticket.get_priority_display }} | +
{% trans "Copies To" %} | -{{ ticketcc_string }} {% trans "Manage" %}{% if SHOW_SUBSCRIBE %}, {% trans "Subscribe" %}{% endif %} | -
{% trans "Copies To" %} | +{{ ticketcc_string }} {% if SHOW_SUBSCRIBE %}, {% endif %} | +
{% trans "Dependencies" %} | -{% for dep in ticket.ticketdependency.all %}
- {% if forloop.first %} {% trans "This ticket cannot be resolved until the following ticket(s) are resolved" %}
{% trans "This ticket has no dependencies." %} - {% endfor %} - - |
-
{% trans "Dependencies" %} | +{% for dep in ticket.ticketdependency.all %}
+ {% if forloop.first %} {% trans "This ticket cannot be resolved until the following ticket(s) are resolved" %}
{% trans "This ticket has no dependencies." %} + {% endfor %} + + |
+