Commit fce6efc1 by Tim Krones

Introduce extended_feedback field and make it editable in Studio.

parent bc879077
...@@ -833,16 +833,22 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes ...@@ -833,16 +833,22 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
""" """
# Content # Content
max_attempts = Integer( max_attempts = Integer(
display_name=_("Max. Attempts Allowed"), display_name=_("Max. attempts allowed"),
help=_("Maximum number of attempts allowed for this mentoring block"), help=_("Maximum number of times students are allowed to attempt this mentoring block"),
default=0, default=0,
scope=Scope.content, scope=Scope.content,
enforce_type=True enforce_type=True
) )
extended_feedback = Boolean(
display_name=_("Extended feedback"),
help=_("Show extended feedback when all attempts are used up?"),
default=False,
Scope=Scope.content
)
# Settings # Settings
display_name = String( display_name = String(
display_name=_("Title (Display name)"), display_name=_("Title (display name)"),
help=_("Title to display"), help=_("Title to display"),
default=_("Mentoring Questions (with explicit steps)"), default=_("Mentoring Questions (with explicit steps)"),
scope=Scope.settings scope=Scope.settings
...@@ -862,7 +868,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes ...@@ -862,7 +868,7 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
enforce_type=True enforce_type=True
) )
editable_fields = ('display_name', 'max_attempts') editable_fields = ('display_name', 'max_attempts', 'extended_feedback')
@lazy @lazy
def questions(self): def questions(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment