From d1188b5cc89208e3e1c67dfc453225f6cd44d4e2 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 4 Apr 2022 21:54:42 +0100 Subject: [PATCH] . --- atlas/forms.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/atlas/forms.py b/atlas/forms.py index 3b8a0bfe..1c3eee1f 100755 --- a/atlas/forms.py +++ b/atlas/forms.py @@ -412,6 +412,15 @@ class CidReportAnswerMarkForm(ModelForm): model = CidReportAnswer 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): super(CidReportAnswerMarkForm, self).__init__(*args, **kwargs) - self.fields['score'].required = False \ No newline at end of file + self.fields['score'].required = False