Revision 7517a4b7
Added by Serghei Mihai almost 12 years ago
| calebasse/agenda/views.py | ||
|---|---|---|
|
|
||
|
class AgendaServiceActivityView(TemplateView, cbv.ServiceViewMixin):
|
||
|
template_name = 'agenda/service-activity.html'
|
||
|
cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
|
||
|
cookies_to_clear = [('agenda-tabs', )]
|
||
|
|
||
|
def get_context_data(self, **kwargs):
|
||
|
context = super(AgendaServiceActivityView, self).get_context_data(**kwargs)
|
||
| ... | ... | |
|
|
||
|
class AgendaServiceActValidationView(TemplateView):
|
||
|
template_name = 'agenda/act-validation.html'
|
||
|
cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
|
||
|
cookies_to_clear = [('agenda-tabs', )]
|
||
|
|
||
|
def acts_of_the_day(self):
|
||
|
acts = list(Act.objects \
|
||
| ... | ... | |
|
|
||
|
class AgendasTherapeutesView(AgendaHomepageView):
|
||
|
template_name = 'agenda/agendas-therapeutes.html'
|
||
|
cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
|
||
|
cookies_to_clear = [('agenda-tabs', )]
|
||
|
|
||
|
def get_context_data(self, **kwargs):
|
||
|
context = super(AgendasTherapeutesView, self).get_context_data(**kwargs)
|
||
| ... | ... | |
|
class PeriodicEventsView(cbv.ListView):
|
||
|
model = EventWithAct
|
||
|
template_name = 'agenda/periodic-events.html'
|
||
|
cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
|
||
|
cookies_to_clear = [('agenda-tabs', )]
|
||
|
|
||
|
def dispatch(self, request, *args, **kwargs):
|
||
|
if 'worker_id' in kwargs:
|
||
Also available in: Unified diff
new schedule cookie deleted for some pages