{% extends "base.html" %} {% block content %}

Question Detail

{{ question.institution }}

{{ question.level }}

{{ question.question_date }}

Subject
{{ question.subject }}
{% if question.paper %}
Paper
{{ question.paper }}
{% endif %} {% if question.group %}
Group
{{ question.group }}
{% endif %} {% if question.chapter %}
Chapter
{{ question.chapter }}
{% endif %} {% if question.syllabus_code %}
Syllabus Code
{{ question.syllabus_code }}
{% endif %} {% if question.marks %}
Marks
{{ question.marks }}
{% endif %}
Question No.
{{ question.question_number }}
Type
{{ question.type or 'essay' }}
Question
{% if question.nepali_transcription and question.english_transcription %}

{{ question.nepali_transcription|safe }}

({{ question.english_transcription|safe }})

{% elif question.nepali_transcription %}

{{ question.nepali_transcription|safe }}

{% elif question.english_transcription %}

{{ question.english_transcription|safe }}

{% endif %} {% if question.notes %}
Note: {{ question.notes }}
{% endif %}
{% set has_answer = question.general_feedback or question.grader_info or (question.type == 'multichoice' and question.options|selectattr('correct')|list|length > 0) or (question.type == 'truefalse' and question.options|selectattr('correct')|list|length > 0) or question.correct_feedback or question.partially_correct_feedback or question.incorrect_feedback or question.feedback_true or question.feedback_false %} {% if has_answer %}
Answer & Explanation
{# ---- Explicit correct answer ---- #} {% if question.type == 'multichoice' %} {% for opt in question.options %}{% if opt.correct %}
✅ Correct option: {{ opt.text|safe }}
{% endif %}{% endfor %} {% elif question.type == 'truefalse' %} {% for opt in question.options %}{% if opt.correct %}
✅ Correct answer: {{ opt.text }}
{% endif %}{% endfor %} {% if question.feedback_true %}
If answered True: {{ question.feedback_true|safe }}
{% endif %} {% if question.feedback_false %}
If answered False: {{ question.feedback_false|safe }}
{% endif %} {% elif question.type == 'matching' %} {% if question.correct_feedback %}
Correct: {{ question.correct_feedback|safe }}
{% endif %} {% if question.partially_correct_feedback %}
Partially correct: {{ question.partially_correct_feedback|safe }}
{% endif %} {% if question.incorrect_feedback %}
Incorrect: {{ question.incorrect_feedback|safe }}
{% endif %} {% endif %} {# ---- General feedback as explanation / model answer ---- #} {% if question.general_feedback %}
💡 Explanation:
{{ question.general_feedback|safe }}
{% endif %} {# ---- Essay grader notes ---- #} {% if question.type == 'essay' and question.grader_info %}
📝 Grader notes:
{{ question.grader_info|safe }}
{% endif %}
{% endif %}
Type: {{ question.type or 'essay' }}
{% if question.type == 'multichoice' %}
Options
    {% for opt in question.options %}
  • {{ opt.text|safe }} {% if opt.correct %} ✓ Correct {% endif %}
  • {% endfor %}
{% if question.fraction_correct or question.fraction_wrong %}
Correct fraction: {{ question.fraction_correct or 100 }}% | Wrong fraction: {{ question.fraction_wrong or -20 }}%
{% endif %} {% elif question.type == 'truefalse' %}
Correct answer

{% for opt in question.options %} {% if opt.correct %} {{ opt.text }} {% endif %} {% endfor %}

{% if question.feedback_true %}
Feedback if True: {{ question.feedback_true }}
{% endif %} {% if question.feedback_false %}
Feedback if False: {{ question.feedback_false }}
{% endif %} {% if question.fraction_correct or question.fraction_wrong %}
Correct fraction: {{ question.fraction_correct or 100 }}% | Wrong fraction: {{ question.fraction_wrong or -20 }}%
{% endif %} {% elif question.type == 'matching' %}
Matching Pairs
{% for pair in question.pairs %} {% endfor %}
SubquestionAnswer
{{ pair.subquestion }}{{ pair.answer }}
{% if question.shuffle_answers is not none %}
Shuffle answers: {{ 'Yes' if question.shuffle_answers else 'No' }}
{% endif %} {% if question.show_num_correct %}
Show number correct: Yes
{% endif %} {% if question.correct_feedback %}
Correct feedback: {{ question.correct_feedback }}
{% endif %} {% if question.partially_correct_feedback %}
Partially correct feedback: {{ question.partially_correct_feedback }}
{% endif %} {% if question.incorrect_feedback %}
Incorrect feedback: {{ question.incorrect_feedback }}
{% endif %} {% if question.hints %}
Hints
    {% for hint in question.hints %}
  • {{ hint.text }} {% if hint.clear_incorrect %}Clears incorrect{% endif %} {% if hint.show_num_correct %}Shows number correct{% endif %}
  • {% endfor %}
{% endif %} {% else %} {# Essay #}
Essay settings
  • Lines: {{ question.response_lines or 15 }}
  • Attachments: {{ question.attachments or 0 }}
  • File types: {{ question.filetypes or '.doc,.docx,.pdf,.png,.jpg,.jpeg' }}
  • Max bytes: {{ question.maxbytes or 2097152 }}
  • {% if question.grader_info %}
  • Grader info: {{ question.grader_info }}
  • {% endif %}
{% endif %} {% if question.source %}
Source: {{ question.source }}
{% endif %}
{% endblock %}