Add Family
and Product.family
to the general grid/crud UI.
This commit is contained in:
parent
e4ef46d4fc
commit
087342b09c
5 changed files with 141 additions and 0 deletions
12
tailbone/templates/families/crud.mako
Normal file
12
tailbone/templates/families/crud.mako
Normal file
|
@ -0,0 +1,12 @@
|
|||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
<li>${h.link_to("Back to Families", url('families'))}</li>
|
||||
% if form.readonly:
|
||||
<li>${h.link_to("Edit this Family", url('family.update', uuid=form.fieldset.model.uuid))}</li>
|
||||
% elif form.updating:
|
||||
<li>${h.link_to("View this Family", url('family.read', uuid=form.fieldset.model.uuid))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
11
tailbone/templates/families/index.mako
Normal file
11
tailbone/templates/families/index.mako
Normal file
|
@ -0,0 +1,11 @@
|
|||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Families</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
% if request.has_perm('families.create'):
|
||||
<li>${h.link_to("Create a new Family", url('family.create'))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue