tailbone/tailbone/templates/shifts/schedule.mako
Lance Edgar 4191e50456 Refactor time sheet, schedule filter forms to use colander/deform
also add "print employee schedule" feature, didn't realize that was missing
2018-02-11 15:58:06 -06:00

36 lines
1 KiB
Mako

## -*- coding: utf-8 -*-
<%inherit file="/shifts/base.mako" />
<%def name="context_menu()">
% if request.has_perm('schedule.edit'):
<li>${h.link_to("Edit Schedule", url('schedule.edit'))}</li>
% endif
% if request.has_perm('schedule.print'):
% if employee is Undefined:
<li>${h.link_to("Print Schedule", url('schedule.print'), target='_blank')}</li>
% else:
<li>${h.link_to("Print this Schedule", url('schedule.employee.print'), target='_blank')}</li>
% endif
% endif
% if request.has_perm('timesheet.view'):
<li>${h.link_to("View this Time Sheet", url('schedule.goto.timesheet'), class_='goto')}</li>
% endif
</%def>
<%def name="render_day(day)">
% for shift in day['scheduled_shifts']:
<p class="shift">${render_shift(shift)}</p>
% endfor
</%def>
<%def name="render_employee_total(employee)">
${employee.scheduled_hours_display}
</%def>
<%def name="render_employee_day_total(day)">
${day['scheduled_hours_display']}
</%def>
${parent.body()}