{% extends "base.html" %} {% block title %}{{ exam.title }} - 智联青云{% endblock %} {% block content %}
{% if need_password %}

{{ exam.title }}

该考试需要输入密码才能进入

返回列表
{% elif existing_submission %}

您已提交过该试卷

查看结果
{% elif exam.status == 'closed' %}

该考试已关闭

返回列表
{% elif schedule_status == 'not_started' %}

⏰ 考试尚未开始

预定开始时间:{{ exam.scheduled_start.strftime('%Y-%m-%d %H:%M') }}

{% if exam.scheduled_end %}

预定结束时间:{{ exam.scheduled_end.strftime('%Y-%m-%d %H:%M') }}

{% endif %}

距离开考还有:

返回列表
{% elif schedule_status == 'ended' %}

该考试已结束

结束时间:{{ exam.scheduled_end.strftime('%Y-%m-%d %H:%M') }}

返回列表
{% else %}

{{ exam.title }}

{{ exam.subject }} · {{ exam.duration }}分钟 · 满分{{ exam.total_score }}分 {% if exam.scheduled_end %} · 截止:{{ exam.scheduled_end.strftime('%m-%d %H:%M') }} {% endif %}
0/{{ questions|length }} 已答
--:--:--
{% for q in questions %}
{{ loop.index }}
{% if q.type == 'choice' %}选择题{% elif q.type == 'fill' %}填空题{% else %}解答题{% endif %}

{{ q.content }}

{% if q.get('images') %}
{% for img in q.images %} 题目图片 {% endfor %}
{% endif %}
({{ q.score }}分)
{% if q.type == 'choice' %}
{% for opt in q.options %} {% endfor %}
{% elif q.type == 'fill' %} {% else %}
{% endif %}
{% endfor %}
1 / {{ questions|length }} 题
{% endif %}
{% endblock %} {% block scripts %} {% if not existing_submission and exam.status != 'closed' and schedule_status == 'available' %} {% endif %} {% endblock %}