{% extends "base.html" %} {% block title %}Satisfaction Report{% endblock %} {% block page_title %}Satisfaction Report{% endblock %} {% block content %}
{% if avg_rating %}{{ avg_rating }} / 5{% else %}—{% endif %}
Average Rating
{{ total }}
Responses Received
{{ pending }}
Awaiting Response
{% if total %}
Rating Distribution
{% for star in [5,4,3,2,1] %} {% set count = dist[star] %} {% set pct = ((count / total) * 100)|round(1) if total else 0 %}
{{ star }} ★
{{ count }} ({{ pct }}%)
{% endfor %}
{% endif %}
Individual Responses
{% if surveys %} {% for s in surveys %} {% endfor %}
Ticket Submitted By Rating Comment Submitted
{{ s.ticket.ticket_number }}
{{ s.ticket.title }}
{{ s.user.full_name }} {% for i in range(s.rating) %}★{% endfor %}{% for i in range(5 - s.rating) %}{% endfor %} {{ s.comment or '—' }} {{ s.submitted_at | localtime("%b %d, %Y") }}
{% else %}
No satisfaction responses yet. Surveys are sent automatically when tickets are resolved.
{% endif %}
{% endblock %}