.
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
|
<h2>{{exam.name}}</h2>
|
||||||
|
|
||||||
|
<input id="cid-box" type="text" value="Candidate ID">
|
||||||
|
|
||||||
|
<button>Start exam</button>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function () {
|
||||||
|
let cid = $("#cid-box").val();
|
||||||
|
window.location.replace("{% url 'sbas:question_detail' pk=exam.pk sk=0 cid=${cid}%}");
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user