diff options
author | jayparikh111 | 2012-03-13 18:44:01 +0530 |
---|---|---|
committer | jayparikh111 | 2012-03-13 18:44:01 +0530 |
commit | a7c84a478789e9e835dcbb3ea41b1d519ba69b4d (patch) | |
tree | fc879bdd0b0eb58817275c0837126a06be81f96e /testapp/exam | |
parent | 87862b8c8d7822a4578b5cb5f413bedb37454bd2 (diff) | |
download | online_test-a7c84a478789e9e835dcbb3ea41b1d519ba69b4d.tar.gz online_test-a7c84a478789e9e835dcbb3ea41b1d519ba69b4d.tar.bz2 online_test-a7c84a478789e9e835dcbb3ea41b1d519ba69b4d.zip |
minor changes for UI
Diffstat (limited to 'testapp/exam')
-rw-r--r-- | testapp/exam/forms.py | 2 | ||||
-rw-r--r-- | testapp/exam/views.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/testapp/exam/forms.py b/testapp/exam/forms.py index e622b88..272a3d4 100644 --- a/testapp/exam/forms.py +++ b/testapp/exam/forms.py @@ -113,7 +113,7 @@ class QuizForm(forms.Form): start_date = forms.DateField(initial=datetime.date.today) duration = forms.IntegerField() active = forms.BooleanField(required = False) - description = forms.CharField(max_length=256, widget=forms.Textarea(attrs={'cols':20,'rows':2})) + description = forms.CharField(max_length=256, widget=forms.Textarea(attrs={'cols':20,'rows':1})) def save(self): start_date = self.cleaned_data["start_date"] diff --git a/testapp/exam/views.py b/testapp/exam/views.py index 2803538..ffb1b1e 100644 --- a/testapp/exam/views.py +++ b/testapp/exam/views.py @@ -246,7 +246,8 @@ def prof_manage(request): user = request.user if user.is_authenticated() and user.groups.filter(name='moderator').count() > 0: - return render_to_response('manage.html',{}) + context = {'user':user} + return render_to_response('manage.html',context) return my_redirect('/exam/login/') def user_login(request): |