diff options
author | adityacp | 2020-09-12 11:44:01 +0530 |
---|---|---|
committer | adityacp | 2020-09-12 11:44:01 +0530 |
commit | b1d2b88746fc670d7362f9b4d175d5e570f3ac77 (patch) | |
tree | 7225713597b09645ce7b75ffe44271691e3e28b0 /yaksh/forms.py | |
parent | bee8d54d8ae094db5e3c9c04c5e28fb5b2abb1df (diff) | |
download | online_test-b1d2b88746fc670d7362f9b4d175d5e570f3ac77.tar.gz online_test-b1d2b88746fc670d7362f9b4d175d5e570f3ac77.tar.bz2 online_test-b1d2b88746fc670d7362f9b4d175d5e570f3ac77.zip |
Mulitple changes
- Remove all alerts and add toast messages
- Accept user submissions for the lesson quiz and evaluate
- Initial lesson statistics
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r-- | yaksh/forms.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py index 440a535..cc5daaf 100644 --- a/yaksh/forms.py +++ b/yaksh/forms.py @@ -655,10 +655,13 @@ class TopicForm(forms.ModelForm): time = kwargs.pop("time") if "time" in kwargs else None super(TopicForm, self).__init__(*args, **kwargs) self.fields['name'].widget.attrs.update( - {'class': form_input_class, 'placeholder': 'Topic Name'} + {'class': form_input_class, 'placeholder': 'Name'} ) self.fields['timer'].widget.attrs.update( - {'class': form_input_class, 'placeholder': 'Topic Time'} + {'class': form_input_class, 'placeholder': 'Time'} + ) + self.fields['description'].widget.attrs.update( + {'class': form_input_class, 'placeholder': 'Description'} ) self.fields['timer'].initial = time |