Project

General

Profile

« Previous | Next » 

Revision 0cbf950f

Added by Serghei Mihai almost 11 years ago

agenda: rooms schedules are managed the same way as "classical" schedules

Closes #3636

View differences:

calebasse/agenda/views.py
71 71

  
72 72
class AgendaServiceActivityView(TemplateView, cbv.ServiceViewMixin):
73 73
    template_name = 'agenda/service-activity.html'
74
    cookies_to_clear = [('agenda-worker-tabs', )]
74
    cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
75 75

  
76 76
    def get_context_data(self, **kwargs):
77 77
        context = super(AgendaServiceActivityView, self).get_context_data(**kwargs)
......
130 130
    template_name = 'agenda/new-appointment.html'
131 131
    success_url = '..'
132 132
    success_msg = u'Rendez-vous enregistré avec succès.'
133
    cookies_to_clear = [('agenda-worker-tabs', )]
133
    cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
134 134

  
135 135
    def get_initial(self):
136 136
        initial = super(NewAppointmentView, self).get_initial()
......
203 203
    form_class = NewEventForm
204 204
    template_name = 'agenda/new-event.html'
205 205
    success_url = '..'
206
    cookies_to_clear = [('agenda-worker-tabs', )]
206
    cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
207 207

  
208 208
    def get_initial(self):
209 209
        initial = super(NewEventView, self).get_initial()
......
291 291

  
292 292
class AgendaServiceActValidationView(TemplateView):
293 293
    template_name = 'agenda/act-validation.html'
294
    cookies_to_clear = [('agenda-worker-tabs', )]
294
    cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
295 295

  
296 296
    def acts_of_the_day(self):
297 297
        acts = list(Act.objects \
......
421 421

  
422 422
class AgendasTherapeutesView(AgendaHomepageView):
423 423
    template_name = 'agenda/agendas-therapeutes.html'
424
    cookies_to_clear = [('agenda-worker-tabs', )]
424
    cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
425 425

  
426 426
    def get_context_data(self, **kwargs):
427 427
        context = super(AgendasTherapeutesView, self).get_context_data(**kwargs)
......
626 626
class PeriodicEventsView(cbv.ListView):
627 627
    model = EventWithAct
628 628
    template_name = 'agenda/periodic-events.html'
629
    cookies_to_clear = [('agenda-worker-tabs', )]
629
    cookies_to_clear = [('agenda-worker-tabs', ), ('agenda-ressource-tabs', )]
630 630

  
631 631
    def dispatch(self, request, *args, **kwargs):
632 632
        if 'worker_id' in kwargs:

Also available in: Unified diff