Add employee/department relationships to employee and department views.
This commit is contained in:
parent
aafaf64640
commit
973b9903ae
4 changed files with 75 additions and 3 deletions
13
tailbone/templates/departments/view.mako
Normal file
13
tailbone/templates/departments/view.mako
Normal 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
|
13
tailbone/templates/employees/view.mako
Normal file
13
tailbone/templates/employees/view.mako
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue