comparison 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
comparison
equal deleted inserted replaced
1093:1ac847818aea 1094:110bbc78a482
62 ('23:30', '11:30 pm (23:30)'), 62 ('23:30', '11:30 pm (23:30)'),
63 ) 63 )
64 64
65 65
66 class EventEntryForm(forms.ModelForm): 66 class EventEntryForm(forms.ModelForm):
67 what = forms.CharField(widget=forms.TextInput(attrs={'size': 60})) 67 what = forms.CharField(label='Event Title')
68 start_date = forms.DateField(widget=forms.TextInput(attrs={'size': 10})) 68 start_date = forms.DateField(label='Start Date')
69 start_time = forms.TimeField(required=False, widget=forms.Select(choices=TIME_CHOICES)) 69 start_time = forms.TimeField(label='Start Time', required=False,
70 end_date = forms.DateField(widget=forms.TextInput(attrs={'size': 10})) 70 widget=forms.Select(choices=TIME_CHOICES))
71 end_time = forms.TimeField(required=False, widget=forms.Select(choices=TIME_CHOICES)) 71 end_date = forms.DateField(label='End Date')
72 end_time = forms.TimeField(label='End Time', required=False,
73 widget=forms.Select(choices=TIME_CHOICES))
72 time_zone = forms.CharField(required=False, widget=forms.HiddenInput()) 74 time_zone = forms.CharField(required=False, widget=forms.HiddenInput())
73 where = forms.CharField(required=False, widget=forms.TextInput(attrs={'size': 60})) 75 where = forms.CharField(
76 label='Event Location',
77 required=False,
78 help_text='If applicable, please fill this out for an accurate Google map')
74 description = forms.CharField( 79 description = forms.CharField(
80 label='Event Details',
75 required=False, 81 required=False,
76 widget=forms.Textarea(attrs={ 82 widget=forms.Textarea(attrs={
77 'class': 'markItUp smileyTarget',
78 'id': 'id_body', # needed for image related js 83 'id': 'id_body', # needed for image related js
79 })) 84 }))
80 85
81 DATE_FORMAT = '%m/%d/%Y' # must match the jQuery UI datepicker config 86 DATE_FORMAT = '%m/%d/%Y' # must match the jQuery UI datepicker config
82 TIME_FORMAT = '%H:%M' 87 TIME_FORMAT = '%H:%M'