comparison gpp/bio/forms.py @ 133:c515b7401078

Use the new common way to apply markItUp to textareas and to get the smiley and markdown help dialogs for all the remaining apps except for forums and comments.
author Brian Neal <bgneal@gmail.com>
date Fri, 27 Nov 2009 00:21:47 +0000
parents f8f4514b806a
children ab7830b067b3
comparison
equal deleted inserted replaced
132:06503edcc56b 133:c515b7401078
30 location = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 })) 30 location = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
31 occupation = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 })) 31 occupation = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
32 interests = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 })) 32 interests = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
33 time_zone = forms.CharField(required=False, widget=forms.HiddenInput()) 33 time_zone = forms.CharField(required=False, widget=forms.HiddenInput())
34 use_24_time = forms.BooleanField(label='Show times in 24-hour mode', required=False) 34 use_24_time = forms.BooleanField(label='Show times in 24-hour mode', required=False)
35 profile_text = forms.CharField(required=False,
36 widget=forms.Textarea(attrs={'class': 'markItUp'}))
37 signature = forms.CharField(required=False,
38 widget=forms.Textarea(attrs={'class': 'markItUp'}))
35 39
36 class Meta: 40 class Meta:
37 model = UserProfile 41 model = UserProfile
38 exclude = ('user', 'avatar', 'profile_html', 'signature_html', 'forum_post_count') 42 exclude = ('user', 'avatar', 'profile_html', 'signature_html', 'forum_post_count')
39 43