- Created by:
- {{ ticket.createdBy.username }}
- Created on:
- {{ ticket.createdAt|date('Y-m-d H:i') }}
- Status:
-
{% set status_class = {
'open': 'primary',
'in_progress': 'info',
'resolved': 'success',
'closed': 'secondary'
} %}
{{ bs.badge(ticket.status|capitalize, status_class[ticket.status]) }}
{% if ticket.updatedAt %}
- Last updated:
- {{ ticket.updatedAt|date('Y-m-d H:i') }}
{% endif %}
- Priority:
-
{% set priority_class = {
'low': 'success',
'medium': 'info',
'high': 'warning',
'critical': 'danger'
} %}
{{ bs.badge(ticket.priority|capitalize, priority_class[ticket.priority]) }}
- Assigned to:
-
{% if ticket.assignedTo %}
{{ ticket.assignedTo.username }}
{% else %}
Unassigned
{% endif %}
Description
{{ ticket.description|nl2br }}
{% if ticket.comments|length > 0 %}
Comments ({{ ticket.comments|length }})
{% endif %}
{% if ticket.status != 'closed' %}
{{ form_start(comment_form) }}
{{ bs.form_row(comment_form.content) }}
{{ form_end(comment_form) }}
{% endif %}
{{ comment.content|nl2br }}