Add config flag for disabling option to "Clear Schedule"
I.e. when editing the schedule
This commit is contained in:
		
							parent
							
								
									273f56ec83
								
							
						
					
					
						commit
						af415693b6
					
				
					 2 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue