diff options
author | jayparikh111 | 2012-03-15 18:12:49 +0530 |
---|---|---|
committer | jayparikh111 | 2012-03-15 18:12:49 +0530 |
commit | 480fc524eaffa99bbcec65b0829f6116ccace673 (patch) | |
tree | 6080434cef6c15db391277f73342ceb9a776e86f /testapp/exam/forms.py | |
parent | a7c84a478789e9e835dcbb3ea41b1d519ba69b4d (diff) | |
download | online_test-480fc524eaffa99bbcec65b0829f6116ccace673.tar.gz online_test-480fc524eaffa99bbcec65b0829f6116ccace673.tar.bz2 online_test-480fc524eaffa99bbcec65b0829f6116ccace673.zip |
minor UI changes
Diffstat (limited to 'testapp/exam/forms.py')
-rw-r--r-- | testapp/exam/forms.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testapp/exam/forms.py b/testapp/exam/forms.py index 272a3d4..2a1ae6d 100644 --- a/testapp/exam/forms.py +++ b/testapp/exam/forms.py @@ -11,7 +11,7 @@ import datetime QUESTION_TYPE_CHOICES = ( ("python", "Python"), ("bash", "Bash"), - ("mcq", "MultipleChoice"), + ("mcq", "MCQ"), ) UNAME_CHARS = letters + "._" + digits @@ -131,12 +131,12 @@ class QuizForm(forms.Form): class QuestionForm(forms.Form): """Creates a form to add or edit a Question. It has the related fields and functions required.""" - summary = forms.CharField(max_length = 128) - description = forms.CharField(widget = forms.Textarea(attrs={'cols': 20, 'rows': 3})) + summary = forms.CharField(widget = forms.Textarea(attrs={'cols': 40, 'rows': 1})) + description = forms.CharField(widget = forms.Textarea(attrs={'cols': 40, 'rows': 1})) points = forms.FloatField() - test = forms.CharField(widget = forms.Textarea(attrs={'cols': 20, 'rows': 3})) - options = forms.CharField(widget = forms.Textarea(attrs={'cols': 20, 'rows': 3})) - type = forms.CharField(max_length=24, widget=forms.Select(choices=QUESTION_TYPE_CHOICES)) + test = forms.CharField(widget = forms.Textarea(attrs={'cols': 40, 'rows': 1})) + options = forms.CharField(widget = forms.Textarea(attrs={'cols': 40, 'rows': 1}),required=False) + type = forms.CharField(max_length=8, widget=forms.Select(choices=QUESTION_TYPE_CHOICES)) active = forms.BooleanField(required=False) def save(self): |