diff gcalendar/forms.py @ 1094:110bbc78a482

GCalendar V3 conversion in progress.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 May 2016 23:09:23 -0500
parents f0ac48aa8c64
children f27986c11ddf
line wrap: on
line diff
--- a/gcalendar/forms.py	Wed May 11 22:00:44 2016 -0500
+++ b/gcalendar/forms.py	Sun May 29 23:09:23 2016 -0500
@@ -64,17 +64,22 @@
 
 
 class EventEntryForm(forms.ModelForm):
-    what = forms.CharField(widget=forms.TextInput(attrs={'size': 60}))
-    start_date = forms.DateField(widget=forms.TextInput(attrs={'size': 10}))
-    start_time = forms.TimeField(required=False, widget=forms.Select(choices=TIME_CHOICES))
-    end_date = forms.DateField(widget=forms.TextInput(attrs={'size': 10}))
-    end_time = forms.TimeField(required=False, widget=forms.Select(choices=TIME_CHOICES))
+    what = forms.CharField(label='Event Title')
+    start_date = forms.DateField(label='Start Date')
+    start_time = forms.TimeField(label='Start Time', required=False,
+                                 widget=forms.Select(choices=TIME_CHOICES))
+    end_date = forms.DateField(label='End Date')
+    end_time = forms.TimeField(label='End Time', required=False,
+                               widget=forms.Select(choices=TIME_CHOICES))
     time_zone = forms.CharField(required=False, widget=forms.HiddenInput())
-    where = forms.CharField(required=False, widget=forms.TextInput(attrs={'size': 60}))
+    where = forms.CharField(
+            label='Event Location',
+            required=False,
+            help_text='If applicable, please fill this out for an accurate Google map')
     description = forms.CharField(
+            label='Event Details',
             required=False,
             widget=forms.Textarea(attrs={
-                'class': 'markItUp smileyTarget',
                 'id': 'id_body',    # needed for image related js
                 }))