diff --git a/anatomy/migrations/0036_exam_exam_mode.py b/anatomy/migrations/0036_exam_exam_mode.py new file mode 100644 index 00000000..99cf1cce --- /dev/null +++ b/anatomy/migrations/0036_exam_exam_mode.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.3 on 2021-03-19 11:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('anatomy', '0035_exam_json_creation_time'), + ] + + operations = [ + migrations.AddField( + model_name='exam', + name='exam_mode', + field=models.BooleanField(default=True, help_text='If an exam should be take in exam_mode'), + ), + ] diff --git a/anatomy/templates/anatomy/exam_overview.html b/anatomy/templates/anatomy/exam_overview.html index 8f088cd6..353896fe 100644 --- a/anatomy/templates/anatomy/exam_overview.html +++ b/anatomy/templates/anatomy/exam_overview.html @@ -14,6 +14,7 @@
Publish results: [When checked the exam results will be available on this site]
+ Exam mode: {{ exam.exam_mode }}

    diff --git a/anatomy/templates/anatomy/mark.html b/anatomy/templates/anatomy/mark.html index 943718ff..22993d12 100644 --- a/anatomy/templates/anatomy/mark.html +++ b/anatomy/templates/anatomy/mark.html @@ -5,7 +5,7 @@ Edit Admin Edit

    {{ question.question_type }}

    -
    +
    {% csrf_token %} diff --git a/anatomy/templates/anatomy/question_detail.html b/anatomy/templates/anatomy/question_detail.html index e2ac58b7..63bbc867 100644 --- a/anatomy/templates/anatomy/question_detail.html +++ b/anatomy/templates/anatomy/question_detail.html @@ -15,7 +15,7 @@
    {% endif %} -