Project

General

Profile

« Previous | Next » 

Revision e36e0819

Added by Mikaël Ates about 13 years ago

validation : feasible in the services of the appointment only, double only at the CMPP (#2030).

View differences:

calebasse/agenda/views.py
context['disponibility'] = Occurrence.objects.daily_disponiblity(context['date'],
occurrences_workers, workers, time_tables_workers)
context['validation_states'] = VALIDATION_STATES
return context
class AgendaServiceActivityView(TemplateView):
......
state = None
act.date = act.date.strftime("%H:%M")
actes.append((act, state, display_name))
context['validation_states'] = VALIDATION_STATES
context['validation_states'] = dict(VALIDATION_STATES)
if self.service.name != 'CMPP' and \
'ACT_DOUBLE' in context['validation_states']:
context['validation_states'].pop('ACT_DOUBLE')
context['actes'] = actes
context['validation_msg'] = validation_msg
context['authorized_lock'] = authorized_lock

Also available in: Unified diff