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

{{ticket.title}}

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

{{ticket.description}}

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

    {{comment.comment}}

    {% if comment.comment_attachment.all %} {% for attachment in comment.comment_attachment.all %} {% with extension=attachment.file.name|lower|slice:"-4:" %}
  • {{ attachment }}
  • {% endwith %} {% endfor %} {% endif %}
    {% endif %} {% endfor %}
    Jane assigned ticket to Patricia 26 Mar 2019, 1:32PM
    Patricia changed the ticket status from Open to Pending 26 Mar 2019, 1:33PM
    {% csrf_token %}
    Ticket Details
    Ticket Info
    • Ticket ID: {{ticket.id}}
    • Created: {{ticket.created_date}}
    • Last message: 27 Mar 2019
    • Status: {% comment %} {{ticket.get_status_display}} {% endcomment %}
    • {% comment %}
    • Source: Email
    • {% endcomment %}
    Responsibility
    Raised on Change
    • {{ticket.get_raised_on}}
    Assigned to Change
    {% for assigne in ticket.assigned_to.all %}
    • {{assigne}}
      {{assigne}} {% comment %}

      jane@gmail.com

      {% endcomment %}
    {% endfor %}
    Documents
      {% if attachments %} {% for attachment in attachments %} {% with extension=attachment.file.name|lower|slice:"-4:" %}
    • {{ attachment }}
    • {% endwith %} {% endfor %} {% endif %}
    {% endblock content %}