diff --git a/anatomy/migrations/0046_alter_exam_open_access.py b/anatomy/migrations/0046_alter_exam_open_access.py new file mode 100644 index 00000000..a7dac64f --- /dev/null +++ b/anatomy/migrations/0046_alter_exam_open_access.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2021-10-17 17:13 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('anatomy', '0045_exam_open_access'), + ] + + operations = [ + migrations.AlterField( + model_name='exam', + name='open_access', + field=models.BooleanField(default=False, help_text='If the exam is freely accessible (to view and edit on the test system)'), + ), + ] diff --git a/anatomy/templates/anatomy/exam_overview.html b/anatomy/templates/anatomy/exam_overview.html index a2fef196..921baeb5 100644 --- a/anatomy/templates/anatomy/exam_overview.html +++ b/anatomy/templates/anatomy/exam_overview.html @@ -21,13 +21,13 @@ Exam mode: {{ exam.exam_mode }}
Open access: {{ exam.open_access }}
+
+ Exam active: [When checked the exam will be available to take in the test system] +
{% if exam.exam_mode %} -
- Exam active: [When checked the exam will be available to take in the test system] -
Publish results: [When checked the exam results will be available to users on this site] + {% if exam.publish_results %}checked{% endif %}> [When checked the exam results will be available to users on this site]

{% endif %} diff --git a/generic/models.py b/generic/models.py index 9b54c9b8..92be98f9 100644 --- a/generic/models.py +++ b/generic/models.py @@ -78,7 +78,7 @@ class ExamBase(models.Model): archive = models.BooleanField(help_text="Archived exams will remain on the test system but will not be displayed by default", default=False) open_access = models.BooleanField( - help_text="If the exam is freely accessible", default=False + help_text="If the exam is freely accessible (to view and edit on the test system)", default=False ) #time_limit = models.IntegerField( diff --git a/longs/migrations/0054_alter_exam_open_access.py b/longs/migrations/0054_alter_exam_open_access.py new file mode 100644 index 00000000..5e339ff6 --- /dev/null +++ b/longs/migrations/0054_alter_exam_open_access.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2021-10-17 17:13 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('longs', '0053_exam_open_access'), + ] + + operations = [ + migrations.AlterField( + model_name='exam', + name='open_access', + field=models.BooleanField(default=False, help_text='If the exam is freely accessible (to view and edit on the test system)'), + ), + ] diff --git a/longs/templates/longs/exam_overview.html b/longs/templates/longs/exam_overview.html index 811e883f..4c9a1eca 100644 --- a/longs/templates/longs/exam_overview.html +++ b/longs/templates/longs/exam_overview.html @@ -5,9 +5,9 @@ {% load thumbnail %}
{% if can_edit %} - Edit - Delete - Clone + Edit + Delete + Clone {% endif %} {% if request.user.is_superuser %} Admin Edit @@ -20,17 +20,17 @@ Exam mode: {{ exam.exam_mode }}
Open access: {{ exam.open_access }}
+
+ Exam active: [When checked the exam will be available to take in the test system] +
{% if exam.exam_mode %} -
- Exam active: [When checked the exam will be available to take in the test system] -
Publish results: [When checked the exam results will - be available on this site] + {% if exam.publish_results %}checked{% endif %}> [When checked the exam results will + be available on this site]
{% endif %}

@@ -87,8 +87,8 @@ Refresh JSON cache Refresh Question JSON cache - - + + {% endif %}
diff --git a/physics/migrations/0014_alter_exam_open_access.py b/physics/migrations/0014_alter_exam_open_access.py new file mode 100644 index 00000000..141e43e9 --- /dev/null +++ b/physics/migrations/0014_alter_exam_open_access.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2021-10-17 17:13 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('physics', '0013_exam_open_access'), + ] + + operations = [ + migrations.AlterField( + model_name='exam', + name='open_access', + field=models.BooleanField(default=False, help_text='If the exam is freely accessible (to view and edit on the test system)'), + ), + ] diff --git a/rapids/migrations/0036_alter_exam_open_access.py b/rapids/migrations/0036_alter_exam_open_access.py new file mode 100644 index 00000000..daee87f6 --- /dev/null +++ b/rapids/migrations/0036_alter_exam_open_access.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2021-10-17 17:13 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('rapids', '0035_exam_open_access'), + ] + + operations = [ + migrations.AlterField( + model_name='exam', + name='open_access', + field=models.BooleanField(default=False, help_text='If the exam is freely accessible (to view and edit on the test system)'), + ), + ] diff --git a/sbas/migrations/0006_alter_exam_open_access.py b/sbas/migrations/0006_alter_exam_open_access.py new file mode 100644 index 00000000..bd06f0b9 --- /dev/null +++ b/sbas/migrations/0006_alter_exam_open_access.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.8 on 2021-10-17 17:13 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('sbas', '0005_exam_open_access'), + ] + + operations = [ + migrations.AlterField( + model_name='exam', + name='open_access', + field=models.BooleanField(default=False, help_text='If the exam is freely accessible (to view and edit on the test system)'), + ), + ]