Add config flag for disabling option to "Clear Schedule"

I.e. when editing the schedule
This commit is contained in:
Lance Edgar 2017-02-04 12:38:08 -06:00
parent 273f56ec83
commit af415693b6
2 changed files with 8 additions and 0 deletions

View file

@ -121,6 +121,8 @@ class ScheduleView(TimeSheetView):
context['form'] = form
context['page_title'] = "Edit Schedule"
context['allow_clear'] = self.rattail_config.getbool('tailbone', 'schedule.allow_clear',
default=True)
return self.render_full(**context)
def clear_schedule(self):