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

📘 AI-Generated Questions

{% if questions %}
{% for question in questions %}
Question {{ forloop.counter }}
{% if question.question_part %}

Q: {{ question.question_part }}

{% endif %} {% if question.answer_option_a or question.answer_option_b or question.answer_option_c or question.answer_option_d %}
    {% if question.answer_option_a %}
  • (a) {{ question.answer_option_a }}
  • {% endif %} {% if question.answer_option_b %}
  • (b) {{ question.answer_option_b }}
  • {% endif %} {% if question.answer_option_c %}
  • (c) {{ question.answer_option_c }}
  • {% endif %} {% if question.answer_option_d %}
  • (d) {{ question.answer_option_d }}
  • {% endif %}
{% endif %} {% if question.correct_answer_choice %}

✅ Correct Answer: ({{ question.correct_answer_choice|upper }})

{% endif %} {% if question.correct_answer_description %}

📘 Explanation: {{ question.correct_answer_description }}

{% endif %}

🧠 Type: {{ question.question_sub_type|title }} | 🕒 Created: {{ question.created_at|date:"d M Y, h:i A" }} Created By: {{ question.created_by }}

{% endfor %}
{% else %}

No AI-generated questions found.

{% endif %}
{% endblock %}