improve surverys

This commit is contained in:
Ross
2026-06-29 09:35:12 +01:00
parent 79ba4db4bf
commit c34dcdfd5e
26 changed files with 911 additions and 39 deletions
+4
View File
@@ -147,7 +147,9 @@ class ExamFormMixin:
"publish_results",
"archive",
"pre_survey",
"pre_survey_mandatory",
"post_survey",
"post_survey_mandatory",
Accordion(
AccordionGroup("Date restrictions",
"restrict_to_dates",
@@ -218,7 +220,9 @@ class ExamFormMixin:
"archive",
"results_supervisor_visible",
"pre_survey",
"pre_survey_mandatory",
"post_survey",
"post_survey_mandatory",
# "cid_user_groups",
# "user_user_groups",
# "author",
+8
View File
@@ -732,6 +732,14 @@ class ExamOrCollectionGenericBase(models.Model, AuthorMixin):
related_name="%(app_label)s_%(class)s_post_surveys",
help_text="Survey to be filled out AFTER completing this collection/exam."
)
pre_survey_mandatory = models.BooleanField(
default=False,
help_text="If checked, candidates must complete the pre-take survey to start."
)
post_survey_mandatory = models.BooleanField(
default=False,
help_text="If checked, candidates must complete the post-take survey to view results."
)
class Meta:
abstract = True