.
This commit is contained in:
+1
-1
@@ -478,7 +478,7 @@ class ExamViews(View, LoginRequiredMixin):
|
|||||||
|
|
||||||
with open(path, "w+") as f:
|
with open(path, "w+") as f:
|
||||||
exam_json = exam.get_exam_json()
|
exam_json = exam.get_exam_json()
|
||||||
exam_json["generated"] = time.isoformat()
|
exam_json["generated"] = "test"+time.isoformat()
|
||||||
f.write(json.dumps(exam_json))
|
f.write(json.dumps(exam_json))
|
||||||
|
|
||||||
exam.recreate_json = False
|
exam.recreate_json = False
|
||||||
|
|||||||
@@ -44,9 +44,9 @@
|
|||||||
<div class="marking">
|
<div class="marking">
|
||||||
<form method="POST" class="post-form">{% csrf_token %}
|
<form method="POST" class="post-form">{% csrf_token %}
|
||||||
{{ form.as_p }}
|
{{ form.as_p }}
|
||||||
<button type="submit" name="save" class="save btn btn-default">Save</button>
|
<button type="submit" name="save" class="save btn btn-default" title="Save answer">Save</button>
|
||||||
{% if next_unmarked_id %}
|
{% if next_unmarked_id %}
|
||||||
<button type="submit" name="next" class="save btn btn-default">Next</button>
|
<button type="submit" name="next" class="save btn btn-default" title="Save answer and move to next question">Next answer</button>
|
||||||
<!-- <button type="submit" name="skip" class="save btn btn-default">Skip</button> -->
|
<!-- <button type="submit" name="skip" class="save btn btn-default">Skip</button> -->
|
||||||
{% else %}
|
{% else %}
|
||||||
(no more answers for this question to mark)
|
(no more answers for this question to mark)
|
||||||
|
|||||||
Reference in New Issue
Block a user