Mercurial > public > sg101
diff gpp/forums/forms.py @ 135:13330e1836f3
Cutting forums over to the new common way to add markItUp, extra smileys, and markdown help.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 27 Nov 2009 03:30:15 +0000 |
parents | 3ae999b0c53b |
children | 8fd4984d5c3b |
line wrap: on
line diff
--- a/gpp/forums/forms.py Fri Nov 27 00:39:50 2009 +0000 +++ b/gpp/forums/forms.py Fri Nov 27 03:30:15 2009 +0000 @@ -11,7 +11,8 @@ class NewPostForm(forms.Form): """Form for creating a new post.""" - body = forms.CharField(label='', widget=forms.Textarea) + body = forms.CharField(label='', + widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) topic_id = forms.IntegerField(widget=forms.HiddenInput) topic = None @@ -50,7 +51,8 @@ """ name = forms.CharField(label='Subject', max_length=255, widget=forms.TextInput(attrs={'size': 64})) - body = forms.CharField(label='', widget=forms.Textarea) + body = forms.CharField(label='', + widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) user = None forum = None has_mod_fields = False @@ -98,7 +100,8 @@ """ Form for editing an existing post or a new, non-quick post. """ - body = forms.CharField(label='', widget=forms.Textarea) + body = forms.CharField(label='', + widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) class Meta: model = Post