{% load custom_tags %} {% for question in questions %} {% empty %} {% endfor %}
Question No. Question Options Question Type Created At
Question {{ question.question_number }}: {% if question.exam_name.all %} {% for exam in question.exam_name.all %} {{ exam.name }}{% if not forloop.last %} - {% endif %} {% endfor %} {% else %} None {% endif %} {% if question.question_sub_type in 'simple_type true_and_false_type fill_in_the_blank_type' %} {{ question.question_part|default:"No question text available" }} {% elif question.question_sub_type == 'r_and_a_type' %} {{ question.question_part_first|default:"No question text available" }}
Reason: {{ question.reason|default:"No reason available" }}
Assertion: {{ question.assertion|default:"No assertion available" }} {% elif question.question_sub_type == 'list_type_1' %} First Part: {{ question.question_part_first|default:"No question text available" }}
    {% for i in 1|to_range:8 %} {% with "list_1_row"|add:i as field %} {% if question|get_dynamic_field:field %}
  1. {{ question|get_dynamic_field:field }}
  2. {% endif %} {% endwith %} {% endfor %}
{% elif question.question_sub_type == 'list_type_2' %} {{ question.list_1_name|default:"List-I" }}:
    {% for i in 1|to_range:8 %} {% with "list_1_row"|add:i as field %} {% if question|get_dynamic_field:field %}
  1. {{ question|get_dynamic_field:field }}
  2. {% endif %} {% endwith %} {% endfor %}
{{ question.list_2_name|default:"List-II" }}:
    {% for i in 1|to_range:8 %} {% with "list_2_row"|add:i as field %} {% if question|get_dynamic_field:field %}
  1. {{ question|get_dynamic_field:field }}
  2. {% endif %} {% endwith %} {% endfor %}
{% else %} No question details available. {% endif %}

(a) {{ question.answer_option_a|default:"Option A not available" }}

(b) {{ question.answer_option_b|default:"Option B not available" }}

(c) {{ question.answer_option_c|default:"Option C not available" }}

(d) {{ question.answer_option_d|default:"Option D not available" }}

{{ question.get_question_sub_type_display|default:"Unknown" }} {{ question.created_at|date:"M d, Y, H:i" }}
No questions found.