summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authorAkash Chavan2020-01-02 16:24:00 +0530
committerGitHub2020-01-02 16:24:00 +0530
commit293e95bd0920d2f06058cf3ee4c0be3c2b3cf905 (patch)
tree8cfc13994d38714df26478c85a34ec70741bfab3 /yaksh/forms.py
parenteb05d4b0bc3fd0e2ce5160f30251bd9b939ccef6 (diff)
parente7f83b0f9e098ffb4066fce50f1d60972b5edfcb (diff)
downloadonline_test-293e95bd0920d2f06058cf3ee4c0be3c2b3cf905.tar.gz
online_test-293e95bd0920d2f06058cf3ee4c0be3c2b3cf905.tar.bz2
online_test-293e95bd0920d2f06058cf3ee4c0be3c2b3cf905.zip
Merge pull request #636 from CruiseDevice/revamp_ui
Fix UI, add Pagination to showquestions.html
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index 8cc3d0a..ffb15a6 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -295,13 +295,16 @@ class QuestionFilterForm(forms.Form):
points_options = [(None, 'Select Marks')]
points_options.extend([(point, point) for point in points_list])
self.fields['marks'] = forms.FloatField(
- widget=forms.Select(choices=points_options)
+ widget=forms.Select(choices=points_options,
+ attrs={'class': 'custom-select'})
)
self.fields['marks'].required = False
language = forms.CharField(
- max_length=8, widget=forms.Select(choices=languages))
+ max_length=8, widget=forms.Select(choices=languages,
+ attrs={'class': 'custom-select'}))
question_type = forms.CharField(
- max_length=8, widget=forms.Select(choices=question_types)
+ max_length=8, widget=forms.Select(choices=question_types,
+ attrs={'class': 'custom-select'})
)
@@ -396,7 +399,7 @@ class ProfileForm(forms.ModelForm):
)
class UploadFileForm(forms.Form):
- file = forms.FileField()
+ file = forms.FileField(widget=forms.FileInput(attrs={'class': 'upload'}))
class QuestionPaperForm(forms.ModelForm):