{% extends "helpdesk/base.html" %} {% load static i18n humanize %} {% block helpdesk_title %} {{ ticket.queue.slug }}-{{ ticket.id }}: {% translate "View Ticket Details" %} {% endblock helpdesk_title %} {% block h1_title %}{{ ticket.ticket_for_url }}{% endblock h1_title %} {% block helpdesk_breadcrumb %} {% endblock helpdesk_breadcrumb %} {% block helpdesk_body %} {% if form.errors %} {{ form.errors }} {% include "helpdesk/include/alert_form_errors.html" %} {% endif %} {% if helpdesk_settings.HELPDESK_TRANSLATE_TICKET_COMMENTS %}
{% endif %} {% include "helpdesk/ticket_desc_table.html" %} {% if ticket.merged_to %}

{% translate "This ticket has been merged into ticket" %} {{ ticket.merged_to }}

{% else %} {# Nav Tabs #}
{% if followups %} {% endif %}
{% if followups %} {% load ticket_to_link followup_permissions %} {# Followup Pane #}
    {% for followup in followups %}
  • {% if followup.direction == "outbound" %} {% elif followup.direction == "inbound" %} {% endif %}
    {{ followup.title|escape|num_to_link }}
    {% if helpdesk_settings.HELPDESK_ENABLE_TIME_SPENT_ON_TICKET and followup.time_spent_formated %} {{ followup.time_spent_formated }} · {% endif %} {% if followup.direction == "internal" %} {% translate "Private" %} {% elif followup.direction == "outbound" %} {% translate "To submitter" %} {% else %} {% translate "From submitter" %} {% endif %} {# Quick actions dropdown #} {% if followup|can_edit_followup:request.user or followup|can_delete_followup:request.user %} {% endif %}
    {{ followup.date|naturaltime }} {% if followup.user %}· {{ followup.user }}{% endif %} {% if followup.email_recipients is not None %} {% if followup.email_recipients %} {% blocktranslate with recipients=followup.email_recipients|join:", " %}Emailed: {{ recipients }}{% endblocktranslate %} {% else %} {% translate "Emailed: no one" %} {% endif %} {% endif %} {# Ticket comments #} {% if followup.comment %}
    {{ followup.get_markdown|urlizetrunc:50|num_to_link }}
    {% endif %} {# Changes to ticket #} {% if followup.ticketchange_set.all %}
      {% for change in followup.ticketchange_set.all %}
    • {% blocktranslate with change.field as field and change.old_value as old_value and change.new_value as new_value %} Changed {{ field }} from {{ old_value }} to {{ new_value }}. {% endblocktranslate %}
    • {% endfor %}
    {% endif %} {# Attachments #} {% if helpdesk_settings.HELPDESK_ENABLE_ATTACHMENTS and followup.followupattachment_set.all %}
    {% translate "Attachments" %}
      {% for attachment in followup.followupattachment_set.all %}
    • {{ attachment.filename }} ({{ attachment.mime_type }}, {{ attachment.size|filesizeformat }}) {% if followup.user and request.user == followup.user %} {% endif %}
    • {% endfor %}
    {% endif %}
  • {% endfor %}
{% endif %} {# Respond Pane #}
{% csrf_token %}
{% if preset_replies %}
{% translate "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." %}
{% endif %} {# Comment text box #}
{% url "helpdesk:help_context" as context_help_url %} {% blocktranslate %}

You can insert ticket and queue details in your message. For more information, see the context help page.

{% endblocktranslate %}
{# Status radio buttons #}
{% translate "New Status" %} {% for status_choice in ticket.get_allowed_status_flow %}
{# djlint:off #} {# djlint: on #}
{% endfor %} {% if not ticket.can_be_resolved %}
{% translate "This ticket cannot be resolved or closed until the tickets it depends on are resolved." %}
{% endif %}
{# Public update checkbox #} {% if helpdesk_settings.HELPDESK_UPDATE_PUBLIC_DEFAULT %} {% else %}
{% translate "If this is public, the submitter will be e-mailed your comment or resolution." %}
{% endif %} {# Time spent widget #} {% if helpdesk_settings.HELPDESK_ENABLE_TIME_SPENT_ON_TICKET and user.is_staff %}
{% endif %}
{# Optional form content #} {# Three toggle buttons #}
{% if ticket.checklists.exists %} {% endif %} {% if helpdesk_settings.HELPDESK_ENABLE_ATTACHMENTS %} {% endif %}
{# Extra Ticket Details form #}
{% if queues|length > 1 %}
{% else %} {% endif %}
{{ form.due_date }}
{# ticket merge form #} {{ customfields_form }}
{# Checklists #} {% if ticket.checklists.exists %}
{% for checklist in ticket.checklists.all %}
  • {{ checklist }}
  • {% for task in checklist.tasks.all %}
  • {% endfor %}
{% endfor %}
{% endif %} {# Attachments #} {% if helpdesk_settings.HELPDESK_ENABLE_ATTACHMENTS %} {% if form.errors.attachment %}{{ form.errors.attachment }}{% endif %}
{% endif %}
{% endif %} {% endblock %} {% block helpdesk_js %} {% endblock %}