comparison membermap/forms.py @ 1077:26f2b83e7468

Update Member Map to V3 design.
author Brian Neal <bgneal@gmail.com>
date Tue, 19 Apr 2016 21:01:48 -0500
parents 6164cc091649
children
comparison
equal deleted inserted replaced
1076:b24708086bfc 1077:26f2b83e7468
8 from core.markup import site_markup 8 from core.markup import site_markup
9 from membermap.models import MapEntry 9 from membermap.models import MapEntry
10 10
11 11
12 class MapEntryForm(forms.ModelForm): 12 class MapEntryForm(forms.ModelForm):
13 location = forms.CharField(required=True, 13 location = forms.CharField(required=True, label='Your Location')
14 widget=forms.TextInput(attrs={'size': 64, 'maxlength': 255})) 14 message = forms.CharField(required=False, label='Your Message',
15 message = forms.CharField(required=False,
16 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) 15 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'}))
17 16
18 def clean_message(self): 17 def clean_message(self):
19 message = self.cleaned_data['message'] 18 message = self.cleaned_data['message']
20 self.html = None 19 self.html = None