{% extends TICKETS_BASE_TEMPLATE %} {% load static %} {% block style_head %} {# Core styles you already had #} {% endblock %} {% block extra_head %} {# Page-specific vendor styles #} {# DataTables Bootstrap 5 skin (match your new HTML look) #} {% endblock %} {% block content %}

šŸ”„ Reassignment #{{ reassignment.id }} • Ticket #{{ ticket.id }}

{% if reassignment.is_final %}Final{% else %}Draft{% endif %}

  • {{ reassignment.reassigned_by.get_full_name }} Reassigned At : {{ reassignment.created_at|date:"d-m-Y H:i" }}

    Original Ticket #{{ ticket.id }}

    Ticket Title :
    {{ ticket.title }}

    Reason for Reassignment :
    {{ reassignment.reason|default:"No reason provided" }}

    Module Type :
    {{ ticket.models_name }}

    Module Data :
    {{ ticket.models_object|default:"N/A" }}

    {% if request.user == reassignment.reassigned_by %} {% if reassignment.is_final %} {% for ans in answers %}
  • Q{{ forloop.counter }}. {{ ans.question.text }}

    {{ ans.answer|default:"No answer provided" }}

  • {% empty %}
  • No questions assigned.

  • {% endfor %}
  • Add your feedback
    {% csrf_token %}
  • {% else %}
  • Questions & Answers are in Draft. Please wait for the assigned users to complete their responses.

  • {% endif %} {% elif request.user in reassignment.new_assigned_users.all %}
    {% csrf_token %} {% for ans in answers %}
  • Q{{ forloop.counter }}. {{ ans.question.text }}
  • {% empty %}
  • No questions assigned.

  • {% endfor %} {% if not reassignment.is_final %}
  • Add your feedback
  • {% endif %}
    {% else %}
  • You don't have permissions to answer.

  • {% endif %}
    {% for history in status_history %}
  • {{ history.created_at|date:"d M Y" }}
    {{ history.created_at|date:"H:i" }}

    {{ history.old_status|default:'-' }} → {{ history.new_status }}

    By {% if history.changed_by == request.user %}You{% else %}{{ history.changed_by.first_name|default:history.changed_by.first_name }}{% endif %}

  • {% empty %}
  • No status changes yet.

  • {% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}