Mercurial > public > sg101
comparison gpp/comments/forms.py @ 134:b8474ffe76d9
Cutting comments over to the new common way of using markItUp and getting the extra smiley and markdown help dialogs.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 27 Nov 2009 00:39:50 +0000 |
parents | 2d299909e074 |
children | 88b2b9cb8c1f |
comparison
equal
deleted
inserted
replaced
133:c515b7401078 | 134:b8474ffe76d9 |
---|---|
12 | 12 |
13 class CommentForm(forms.Form): | 13 class CommentForm(forms.Form): |
14 comment = forms.CharField(label='', | 14 comment = forms.CharField(label='', |
15 min_length=1, | 15 min_length=1, |
16 max_length=COMMENT_MAX_LENGTH, | 16 max_length=COMMENT_MAX_LENGTH, |
17 widget=forms.Textarea) | 17 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) |
18 content_type = forms.CharField(widget=forms.HiddenInput) | 18 content_type = forms.CharField(widget=forms.HiddenInput) |
19 object_pk = forms.CharField(widget=forms.HiddenInput) | 19 object_pk = forms.CharField(widget=forms.HiddenInput) |
20 | 20 |
21 def __init__(self, target_object, data=None, initial=None): | 21 def __init__(self, target_object, data=None, initial=None): |
22 self.target_object = target_object | 22 self.target_object = target_object |