{% extends "helpme/base.html" %} {% load crispy_forms_tags %} {% block help_content %}

{{ticket.subject}}

{{ticket.description}}

{% if support %}
{% csrf_token %} {{ form|crispy }}

User: {{ticket.user.username}}

User Meta: {{ticket.user_meta}}

Site: {{ticket.site}}

Created: {{ticket.created}}

Updated: {{ticket.updated}}

History:

{% for dict in ticket.history %} {% for key, value in dict.items %} {% endfor %} {% endfor %}
{{key}}: {{value}}


{% else %}

Status: {{ticket.get_status_display}}

{% endif %} {% for comment in comments %} {% if comment.visibility == 10 and support or comment.visibility == 15 and developer or comment.visibility == 20 and supervisor or comment.visibility == 1 %}

{{ comment.user.username }} {{ comment.created }}

{{ comment.content }}
{% endif %} {% endfor %}
{% csrf_token %} {{ comment_form|crispy }}
{% endblock %}