.
This commit is contained in:
@@ -412,6 +412,15 @@ class CidReportAnswerMarkForm(ModelForm):
|
|||||||
model = CidReportAnswer
|
model = CidReportAnswer
|
||||||
fields = ["score", "feedback"]
|
fields = ["score", "feedback"]
|
||||||
|
|
||||||
|
widgets = {
|
||||||
|
# "normal": RadioSelect(
|
||||||
|
# choices=[(True, 'Yes'),
|
||||||
|
# (False, 'No')])
|
||||||
|
# "findings": TinyMCE(attrs={"cols": 80, "rows": 20}),
|
||||||
|
# "mark_scheme": TinyMCE(attrs={"cols": 80, "rows": 30}),
|
||||||
|
"feedback": Textarea(attrs={"cols": 80, "rows": 4}),
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super(CidReportAnswerMarkForm, self).__init__(*args, **kwargs)
|
super(CidReportAnswerMarkForm, self).__init__(*args, **kwargs)
|
||||||
self.fields['score'].required = False
|
self.fields['score'].required = False
|
||||||
Reference in New Issue
Block a user