{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% load survey_filters %} {% block title %}{% trans "Survey" %} #{{ survey.id|slice:":8" }} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
| # | {% trans "Question" %} | {% trans "Question (AR)" %} | {% trans "Type" %} | {% trans "Response" %} | {% trans "Avg" %} |
|---|---|---|---|---|---|
| {{ forloop.counter }} |
{{ response.question.text }}
|
{% if response.question.text_ar %}
{{ response.question.text_ar }}
{% endif %}
|
{{ response.question.get_question_type_display }} | {% if response.question.question_type == 'rating' %} {{ response.numeric_value|floatformat:1 }} / 5 {% elif response.question.question_type == 'nps' %} {{ response.numeric_value|floatformat:0 }} {% if response.numeric_value >= 9 %}({% trans "Promoter" %}) {% elif response.numeric_value >= 7 %}({% trans "Passive" %}) {% else %}({% trans "Detractor" %}){% endif %} {% elif response.question.question_type == 'yes_no' %} {% if response.choice_value == 'yes' %} {% trans "Yes" %} {% else %} {% trans "No" %} {% endif %} {% elif response.question.question_type in 'multiple_choice,single_choice' %} {{ response.text_value }} {% elif response.question.question_type in 'text,textarea' and response.text_value %} {{ response.text_value|truncatechars:120 }} {% else %} — {% endif %} | {% if response.question.id in question_stats %} {% with question_stat=question_stats|get_item:response.question.id %} {{ question_stat.average|floatformat:1 }} {% endwith %} {% else %} — {% endif %} |
| {{ response.text_value }} | |||||
{% trans "No responses yet" %}
{% trans "The patient hasn't submitted any answers" %}
{{ survey.comment|linebreaks }}
{{ survey.comment_analysis.summary_en }}
{% trans "No comment provided by patient" %}
{{ survey_url }}
{{ survey.contact_notes }}