Add employee/department relationships to employee and department views.

This commit is contained in:
Lance Edgar 2016-01-17 19:45:42 -06:00
parent aafaf64640
commit 973b9903ae
4 changed files with 75 additions and 3 deletions

View file

@ -0,0 +1,13 @@
## -*- coding: utf-8 -*-
<%inherit file="/master/view.mako" />
${parent.body()}
<h2>Employees</h2>
% if employees:
<p>The following employees are assigned to this department:</p>
${employees.render_grid()|n}
% else:
<p>No employees are assigned to this department.</p>
% endif

View file

@ -0,0 +1,13 @@
## -*- coding: utf-8 -*-
<%inherit file="/master/view.mako" />
${parent.body()}
<h2>Departments</h2>
% if departments:
<p>This employee is assigned to the following departments:</p>
${departments.render_grid()|n}
% else:
<p>This employee is not assigned to any departments.</p>
% endif