diff gpp/membermap/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 b6263ac72052
children 88b2b9cb8c1f
line wrap: on
line diff
--- a/gpp/membermap/forms.py	Thu Nov 26 22:51:07 2009 +0000
+++ b/gpp/membermap/forms.py	Fri Nov 27 00:21:47 2009 +0000
@@ -8,6 +8,10 @@
 
 
 class MapEntryForm(forms.ModelForm):
+    location = forms.CharField(required=True, 
+            widget=forms.TextInput(attrs={'size': 64, 'maxlength': 255}))
+    message = forms.CharField(required=False, 
+            widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'}))
 
     class Meta:
         model = MapEntry
@@ -15,8 +19,9 @@
 
     class Media:
         css = {
-            'all': settings.GPP_THIRD_PARTY_CSS['markitup']
+            'all': (settings.GPP_THIRD_PARTY_CSS['markitup'] +
+                    settings.GPP_THIRD_PARTY_CSS['jquery-ui'])
         }
-        js = settings.GPP_THIRD_PARTY_JS['markitup']
+        js = (settings.GPP_THIRD_PARTY_JS['markitup'] +
+              settings.GPP_THIRD_PARTY_JS['jquery-ui'])
 
-# vim: ts=4 sw=4