{% extends "base.html" %} {% from "_qform.html" import qform %} {% block title %}{{ exam.title }}{% endblock %} {% block content %}
Exams / {{ exam.title }}

{{ exam.title }} {% if exam.published %}Published{% else %}Draft{% endif %} {% if exam.lock_on_leave %}Strict mode ON{% else %}Strict mode off{% endif %}

{{ exam.subject or 'No subject' }} · {{ exam.target_class or 'All classes' }}

Settings Results ({{ n_att }})
{{ exam.duration_min }} minTime allowed
{{ qs|length }}Questions
{{ total|num }}Total marks
{{ exam.pass_mark|num }}%Pass mark
{{ exam.opens_at|dt }}Opens
{{ exam.closes_at|dt }}Closes
{% if n_att and not exam.published %}
Students have already attempted this exam. Editing questions now can change how their saved answers are graded.
{% endif %}

Upload questions

Upload a .csv or .xlsx file with columns type, question, a, b, c, d, e, answer, marks.

type: mcq, tf or short · answer: the letter (B), True/False, or the accepted text · leave marks blank for 1.

Add a question

{{ qform(url_for('question_add', eid=exam.id), None, [], 'Add question') }}

Questions ({{ qs|length }})

{% if qs %}
{% endif %}
{% for item in qs %}{% set r = item.row %}
{{ loop.index }}.{{ r.text }}{% if r.image %}
{% endif %}
{{ {'mcq':'Multiple choice','tf':'True / False','short':'Short answer'}[r.qtype] }} · {{ r.marks|num }} mark{{ '' if r.marks == 1 else 's' }}
Edit
{% if r.qtype == 'mcq' %} {% elif r.qtype == 'tf' %} {% else %} {% endif %}
{% else %}

No questions yet. Upload a file or add them one by one above.

{% endfor %}

Danger zone

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