comparison gcalendar/views.py @ 1096:d9cd3180c12c

More GCalendar V3 conversion in progress. Built a brand new post editor. It is hardcoded into GCalendar right now. We will make it more general in the future.
author Brian Neal <bgneal@gmail.com>
date Tue, 14 Jun 2016 21:16:09 -0500
parents 110bbc78a482
children deed541ca79d
comparison
equal deleted inserted replaced
1095:74d7e56a9cfb 1096:d9cd3180c12c
47 form = EventEntryForm() 47 form = EventEntryForm()
48 48
49 return render(request, 'gcalendar/event.html', { 49 return render(request, 'gcalendar/event.html', {
50 'title': 'Add Calendar Event', 50 'title': 'Add Calendar Event',
51 'form': form, 51 'form': form,
52 'is_new': True,
52 'V3_DESIGN': True, 53 'V3_DESIGN': True,
53 }) 54 })
54 55
55 56
56 @login_required 57 @login_required
95 form = EventEntryForm(instance=event) 96 form = EventEntryForm(instance=event)
96 97
97 return render(request, 'gcalendar/event.html', { 98 return render(request, 'gcalendar/event.html', {
98 'title': 'Change Calendar Event', 99 'title': 'Change Calendar Event',
99 'form': form, 100 'form': form,
101 'is_new': False,
102 'V3_DESIGN': True,
100 }) 103 })
101 104
102 105
103 @login_required 106 @login_required
104 def edit_thanks(request): 107 def edit_thanks(request):