{% load i18n humanize ticket_to_link %} {% load static %} {% load helpdesk_util %}
{# Heading & description #}

{{ ticket.title }} #{{ ticket.id }}

{# Resolution #} {{ ticket.get_markdown|urlizetrunc:50|num_to_link }} {% if ticket.resolution %} {% endif %} {# Ticket description #}
{% translate "Due Date" %}

{{ ticket.due_date|date:"DATETIME_FORMAT" }} {% if ticket.due_date %} {% endif %}

{% translate "Priority" %}

{{ ticket.get_priority_display }}

{% translate "Status" %}

{{ ticket.get_status }}

{% translate "Assigned to" %}
{% csrf_token %} {# Keep current queue and priority hidden so they're unchanged #} {# Summary / Title hidden to avoid validation error #}
{% translate "Submitted by" %}
{% if user.is_superuser %} {% if submitter_userprofile_url %} {% endif %} {% endif %}
{% if helpdesk_settings.HELPDESK_ENABLE_TIME_SPENT_ON_TICKET %}
{% translate "Time spent" %}

{{ ticket.time_spent_formated }}

{% endif %}
{% translate "Queue" %}

{{ ticket.queue }}

{% translate "Copies to" %}
{% if ticket.queue.enable_notifications_on_email_events %} {% if SHOW_SUBSCRIBE %} {% endif %} {% else %} {% translate "CC Notifications disabled" %} {% endif %}
{% if helpdesk_settings.HELPDESK_ENABLE_DEPENDENCIES_ON_TICKET != False %}
{% translate "Resolves" %}
{% translate "Depends on" %}
{% endif %} {% if ticket.kbitem %}
{% translate "Knowledgebase item" %}

{{ ticket.kbitem|truncatechars:30 }}

{% endif %} {% if ticket.ticketcustomfieldvalue_set.exists %}
{% translate "Additional Info" %}
    {% for customfield in ticket.ticketcustomfieldvalue_set.all %}
  • {{ customfield.field.label }} {% spaceless %} {% if "url" == customfield.field.data_type %} {{ customfield.value|truncatechars:30 }} {% elif "datetime" == customfield.field.data_type %} {{ customfield.value|datetime_string_format }} {% elif "date" == customfield.field.data_type %} {{ customfield.value|datetime_string_format }} {% elif "time" == customfield.field.data_type %} {{ customfield.value|datetime_string_format }} {% else %} {{ customfield.value|default:"" }} {% endif %} {% endspaceless %}
  • {% endfor %}
{% endif %} {% if helpdesk_settings.HELPDESK_ENABLE_ATTACHMENTS %}
{% translate "Attachments" %} {% with recent_attachments=ticket_attachments|slice:":3" older_attachments=ticket_attachments|slice:"3:" %}
    {% for attachment in recent_attachments %} {% include "helpdesk/include/attachment_list_item.html" %} {% empty %} {% translate "No attachments" %} {% endfor %}
{% if older_attachments %}
    {% for attachment in older_attachments %} {% include "helpdesk/include/attachment_list_item.html" %} {% endfor %}
{% endif %} {% endwith %}
{% endif %}
{% translate "Checklists" %} {% translate "Create" %}
{% for checklist in ticket.checklists.all %}

{{ checklist }}

    {% for task in checklist.tasks.all %}
  • {% endfor %}
{% if checklist.tasks.completed.count %}
{% widthratio checklist.tasks.completed.count checklist.tasks.count 100 as width %}
{% endif %}
{% endfor %}