| 
									
										
										
										
											2016-05-03 21:19:28 -05:00
										 |  |  | ## -*- coding: utf-8 -*- | 
					
						
							|  |  |  | <%inherit file="/shifts/base.mako" /> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-10 13:08:32 -05:00
										 |  |  | <%def name="context_menu()"> | 
					
						
							| 
									
										
										
										
											2017-01-29 18:53:52 -06:00
										 |  |  |     % if employee is not Undefined and request.has_perm('timesheet.edit'): | 
					
						
							|  |  |  |         <li>${h.link_to("Edit this Time Sheet", url('timesheet.employee.edit'))}</li> | 
					
						
							|  |  |  |     % endif | 
					
						
							| 
									
										
										
										
											2016-05-10 13:08:32 -05:00
										 |  |  |     % if request.has_perm('schedule.view'): | 
					
						
							|  |  |  |         <li>${h.link_to("View this Schedule", url('timesheet.goto.schedule'), class_='goto')}</li> | 
					
						
							|  |  |  |     % endif | 
					
						
							|  |  |  | </%def> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-30 23:03:05 -06:00
										 |  |  | <%def name="render_day(day)"> | 
					
						
							|  |  |  |   % for shift in day['worked_shifts']: | 
					
						
							|  |  |  |       <p class="shift">${render_shift(shift)}</p> | 
					
						
							|  |  |  |   % endfor | 
					
						
							|  |  |  | </%def> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%def name="render_employee_total(employee)"> | 
					
						
							|  |  |  |   ${employee.worked_hours_display} | 
					
						
							|  |  |  | </%def> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-05-15 17:34:47 -05:00
										 |  |  | <%def name="render_employee_day_total(day)"> | 
					
						
							| 
									
										
										
										
											2018-10-12 19:05:14 -05:00
										 |  |  |   <span title="${h.hours_as_decimal(day['worked_hours'])} hrs">${day['worked_hours_display']}</span> | 
					
						
							| 
									
										
										
										
											2017-05-15 17:34:47 -05:00
										 |  |  | </%def> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-30 23:03:05 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | ${self.timesheet_wrapper()} |