{% extends 'index.html' %} {% load static %} {% load i18n %} {% load audit_filters %} {% load basefilters %} Helpdesk
{% comment %} {% endcomment %} {% block content %}

{{ticket.title}}

oh-link--secondary
{{ticket.employee_id}}
{{ticket.created_date}}

{{ticket.description}}

{% for item in sorted_activity_list %} {% if item.type == 'comment' %} {% if item.comment.employee_id == ticket.employee_id %}
{{item.comment.employee_id}}
{{item.comment.employee_id}} {% comment %} Private {% endcomment %}
{{item.comment.date}}
{{item.comment.comment}} {% if item.comment.comment_attachment.all %} {% for attachment in item.comment.comment_attachment.all %}
{% with extension=attachment.file.name|lower|slice:"-4:" %}
  • {{ attachment }}
  • {% endwith %}
    {{attachment}}
    {% endfor %} {% endif %}
    {% else %}
    {{item.comment.employee_id}}
    {{item.comment.employee_id}}
    {{item.comment.date}}

    {{item.comment.comment}}

    {% if item.comment.comment_attachment.all %} {% for attachment in item.comment.comment_attachment.all %} {% with extension=attachment.file.name|lower|slice:"-4:" %}
  • {{ attachment }}
  • {% endwith %} {% endfor %} {% endif %}
    {% endif %} {% elif item.type == 'history' %} {% if item.history.type == 'Ticket created' %}
    {{item.history.updated_by}} {% trans "Created the ticket " %}
    {% elif item.history.changes.0.is_fk == True %}
    {{item.history.updated_by}} {% trans "changed the ticket " %}{{item.history.changes.0.field}} {% trans " from" %} {{item.history.pair.0|fk_history:item.history.changes.0}} {% trans "to" %} {{item.history.pair.1|fk_history:item.history.changes.0}} {{ item.history.pair.0.history_date}}
    {% else %}
    {{item.history.updated_by}} {% trans "changed the ticket " %}{{item.history.changes.0.field}} {% trans " from" %} {{item.history.changes.0.old}} {% trans "to" %} {{item.history.changes.0.new}} {{ item.history.pair.0.history_date}}
    {% endif %} {% endif %} {% endfor %}
    {% csrf_token %}
    {% trans "Ticket Details" %}
    {% trans "Ticket Info" %} {% if not ticket.assigned_to.all and request.user.employee_get != ticket.employee_id %} {% trans "Claim" %} {% endif %}
    • {% trans "Ticket ID:" %} {{ticket.ticket_type.prefix}}{{ ticket.id|stringformat:"03d" }}
    • {% trans "Owner" %} {{ticket.employee_id}}
    • {% trans "Created:" %} {{ticket.created_date}}
    • {% csrf_token %}
      {% trans "Priority" %} :
      {% for i in "321" %} {% endfor %}
    • {% trans "Last activity:" %} {% with sorted_activity_list|last as last %} {{ last.date }} {% endwith %}
    • {% comment %}
    • {% trans "Status:" %}
    • {% endcomment %}
    {% trans "Responsibility" %} {{remaining}}
    {% trans "Forward to" %} {% if perms.helpdesk.changeticket or request.user.employee_get == ticket.employee_id %} {% trans "Change" %} {% endif %}
    • {{ticket.get_raised_on_object}}
    {% trans "Assigned to" %} {% if perms.helpdesk.changeticket %} {% trans "Change" %} {% endif %}
    {% for assignee in ticket.assigned_to.all %}
    • {{assignee}}
      {{assignee}}
    {% endfor %}
    {% trans "Documents" %}
      {% if attachments %} {% for attachment in attachments %} {% with extension=attachment.file.name|lower|slice:"-4:" %}
    • {{ attachment }}
    • {% endwith %} {% endfor %} {% endif %}
    {% endblock content %}