diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html index 65e187f0..0c1a8bd0 100644 --- a/rapids/templates/rapids/mark.html +++ b/rapids/templates/rapids/mark.html @@ -6,6 +6,12 @@ href="{% url 'rapids:rapid_update' question.id %}" title="Edit the Question">Edit Admin Edit + {% if unmarked_answers_bool %} + + + {% endif %} {% if question.normal %}

This question is normal

Answers will be automatically marked.
diff --git a/rapids/views.py b/rapids/views.py index 686306e8..dfbd6cfb 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -667,6 +667,7 @@ def mark(request, exam_pk, sk, unmarked_exam_answers_only=True, review=False): half_mark_answers = [] incorrect_answers = [] review_user_answers = [] + unmarked_answers_bool = False # this could be improved if question.normal: incorrect_answers = question.get_user_answers() @@ -700,6 +701,8 @@ def mark(request, exam_pk, sk, unmarked_exam_answers_only=True, review=False): mark = "half-correct" elif marked_ans.status == Answer.MarkOptions.INCORRECT: mark = "incorrect" + else: + unmarked_answers_bool = True review_user_answers.append((ans, mark)) @@ -713,6 +716,7 @@ def mark(request, exam_pk, sk, unmarked_exam_answers_only=True, review=False): "question": question, "question_number": n, "question_details": question_details, + "unmarked_answers_bool": unmarked_answers_bool, "user_answers": unmarked_user_answers, "review_user_answers": review_user_answers, "correct_answers": correct_answers,