{% extends 'base.html' %} {% block title %}{{ quiz['title'] }} - MCQ Quiz Admin{% endblock %} {% block content %} {% if bridge_row and not bridge_row.launched_at %}
📝 Imported Cloud Examination: Ready to Launch

Start the countdown timer only when your students are seated in the classroom and connected to SSP@OUC.

{% endif %} {% if quiz['owner_id'] and quiz['portfolio_id'] %} ← Back to teaching portfolio {% else %} ← All quizzes {% endif %}
MCQ QUIZ #{{quiz['id']}}

{{quiz['title']}}

Closes at: {{quiz['closes_at']|localtime}} • Total Points: {{questions|sum(attribute='points')}}

{{'🟢 Live / Open' if active else 'Closed'}}
{% if bridge_row and not bridge_row.launched_at %}

The QR code and student link will appear here once you launch the examination.

{% else %}

Classroom Examination Access

QR code for student quiz
6-Digit Access Code / الرمز السداسي
{{ six_digit_code or '------' }}
Students can scan QR or enter this 6-digit code in the Student PWA

Students connect to campus Wi-Fi (SSP@OUC), scan this QR code or enter code, and submit their answers.

{{link}}
{% endif %}

Quiz Controls

{{records|length}}

Student attempts registered • {{questions|length}} questions

Export Scores to Excel/CSV Refresh Live Results ↻ {% if active %}
{% else %}
↻ Reopen Quiz for Retake / Extensions
{% endif %}

Student Participants ({{records|length}})

Tap Allow Resubmit ↻ on any student row to permit an individual retake.
{% if records %}
{% for a in records %} {% endfor %}
Full Name (Arabic) Stage Group Status Score Submitted Actions
{{a['full_name']}} {{a['student_grade']|stagelabel}} {{a['student_group'] or '—'}} {% if a['submitted_at'] %} Submitted {% else %} In progress {% endif %} {% if a['score'] is not none %} {{a['score']}} / {{questions|sum(attribute='points')}} {% else %} — {% endif %} {{a['submitted_at']|localtime if a['submitted_at'] else '—'}}
{% else %}

No student attempts recorded yet. Direct students to scan the QR code to begin.

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}