This commit is contained in:
Ross
2023-12-11 14:10:11 +00:00
parent 893e65227e
commit 603082a1c9
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -4,6 +4,10 @@
<h2>Start exam: {{exam.name}}</h2> <h2>Start exam: {{exam.name}}</h2>
{% if exam.time_limit %}
This exam has a time limit of {{ exam.get_time_limit }}. The time will start when you click the Start Exam button below.<br/>
{% endif %}
{% if request.user.is_authenticated and valid_user %} {% if request.user.is_authenticated and valid_user %}
<a href="{% url 'physics:exam_take_user' pk=exam.pk sk=0 %}">Start Exam</a> <a href="{% url 'physics:exam_take_user' pk=exam.pk sk=0 %}">Start Exam</a>
{% else %} {% else %}
@@ -11,10 +15,6 @@
<p><input id="cid-box" type="text" value="Candidate ID"></p> <p><input id="cid-box" type="text" value="Candidate ID"></p>
<p><input id="passcode-box" type="text" value="Passcode"></p> <p><input id="passcode-box" type="text" value="Passcode"></p>
{% if exam.time_limit %}
This exam has a time limit of {{ exam.get_time_limit }}. The time will start when you click the Start Exam button below.<br/>
{% endif %}
<button>Start exam</button> <button>Start exam</button>
<script type="text/javascript"> <script type="text/javascript">
+4 -4
View File
@@ -4,6 +4,10 @@
<h2>Start exam: {{exam.name}}</h2> <h2>Start exam: {{exam.name}}</h2>
{% if exam.time_limit %}
This exam has a time limit of {{ exam.get_time_limit }}. The time will start when you click the Start Exam button below.<br/>
{% endif %}
{% if request.user.is_authenticated and valid_user %} {% if request.user.is_authenticated and valid_user %}
<a href="{% url 'sbas:exam_take_user' pk=exam.pk sk=0 %}">Start Exam</a> <a href="{% url 'sbas:exam_take_user' pk=exam.pk sk=0 %}">Start Exam</a>
{% else %} {% else %}
@@ -11,10 +15,6 @@
<p><input id="cid-box" type="text" value="Candidate ID"></p> <p><input id="cid-box" type="text" value="Candidate ID"></p>
<p><input id="passcode-box" type="text" value="Passcode"></p> <p><input id="passcode-box" type="text" value="Passcode"></p>
{% if exam.time_limit %}
This exam has a time limit of {{ exam.get_time_limit }}. The time will start when you click the Start Exam button below.<br/>
{% endif %}
<button>Start exam</button> <button>Start exam</button>
<script type="text/javascript"> <script type="text/javascript">