add employee views
This commit is contained in:
parent
5deb198846
commit
6ba157ccb2
7 changed files with 135 additions and 0 deletions
2
rattail/pyramid/templates/employees/base.mako
Normal file
2
rattail/pyramid/templates/employees/base.mako
Normal file
|
@ -0,0 +1,2 @@
|
|||
<%inherit file="/base.mako" />
|
||||
${parent.body()}
|
8
rattail/pyramid/templates/employees/crud.mako
Normal file
8
rattail/pyramid/templates/employees/crud.mako
Normal file
|
@ -0,0 +1,8 @@
|
|||
<%inherit file="/employees/base.mako" />
|
||||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="menu()">
|
||||
<p>${h.link_to("Back to Employees", url('employees.list'))}</p>
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
2
rattail/pyramid/templates/employees/edit.mako
Normal file
2
rattail/pyramid/templates/employees/edit.mako
Normal file
|
@ -0,0 +1,2 @@
|
|||
<%inherit file="/employees/crud.mako" />
|
||||
${parent.body()}
|
12
rattail/pyramid/templates/employees/index.mako
Normal file
12
rattail/pyramid/templates/employees/index.mako
Normal file
|
@ -0,0 +1,12 @@
|
|||
<%inherit file="/employees/base.mako" />
|
||||
<%inherit file="/index.mako" />
|
||||
|
||||
<%def name="title()">Employees</%def>
|
||||
|
||||
<%def name="menu()">
|
||||
% if request.has_perm('employees.create'):
|
||||
<p>${h.link_to("Create a new Employee", url('employees.new'))}</p>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
2
rattail/pyramid/templates/employees/new.mako
Normal file
2
rattail/pyramid/templates/employees/new.mako
Normal file
|
@ -0,0 +1,2 @@
|
|||
<%inherit file="/employees/crud.mako" />
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue