summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authoradityacp2020-01-24 09:40:17 +0530
committeradityacp2020-01-24 09:40:17 +0530
commitebbb1b4d3dcec668b901200de7b31253162da80c (patch)
treee142e921193927a37182d0d1a964fbe80bf52d82 /yaksh/forms.py
parent1a485a73245e10e4f2c49e10e376eaa8f2f2ca8c (diff)
downloadonline_test-ebbb1b4d3dcec668b901200de7b31253162da80c.tar.gz
online_test-ebbb1b4d3dcec668b901200de7b31253162da80c.tar.bz2
online_test-ebbb1b4d3dcec668b901200de7b31253162da80c.zip
Change in views, forms and templates
- Add django messages for showing success, warning messages - Add pagination in monitor and grade user - Remove unnecessary template blocks - Show add and view options for quizzes, lessons, modules - Add form-control bootstrap class for multiple forms - Fix the UI in grade user and monitor pages - Add font awesome icons in the login page
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index 5a3925e..414bff5 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -216,6 +216,13 @@ class UserLoginForm(forms.Form):
class ExerciseForm(forms.ModelForm):
+
+ def __init__(self, *args, **kwargs):
+ super(ExerciseForm, self).__init__(*args, **kwargs)
+ self.fields['description'].widget.attrs.update(
+ {'class': form_input_class, 'placeholder':"Exercise Description"}
+ )
+
class Meta:
model = Quiz
fields = ['description', 'view_answerpaper', 'active']