comparison forums/forms.py @ 673:92101013d5ac

For issue #28, add a quick search feature for new forum topics.
author Brian Neal <bgneal@gmail.com>
date Mon, 27 May 2013 15:04:52 -0500
parents ee87ea74d46b
children 71d17d267e27
comparison
equal deleted inserted replaced
672:69e8aa135c2e 673:92101013d5ac
66 Form for creating a new topic and 1st post to that topic. 66 Form for creating a new topic and 1st post to that topic.
67 Superusers and moderators can also create the topic as a sticky or initially 67 Superusers and moderators can also create the topic as a sticky or initially
68 locked. 68 locked.
69 """ 69 """
70 name = forms.CharField(label='Subject', max_length=255, 70 name = forms.CharField(label='Subject', max_length=255,
71 widget=forms.TextInput(attrs={'size': 64})) 71 widget=forms.TextInput(attrs={'style': 'width:70%'}))
72 body = forms.CharField(label='', required=False, 72 body = forms.CharField(label='', required=False,
73 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) 73 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'}))
74 user = None 74 user = None
75 forum = None 75 forum = None
76 has_mod_fields = False 76 has_mod_fields = False