improve surverys
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user