Add product report codes to the UI.
This commit is contained in:
parent
bdf835a4dd
commit
6943298ee0
6 changed files with 148 additions and 8 deletions
13
tailbone/templates/reportcodes/crud.mako
Normal file
13
tailbone/templates/reportcodes/crud.mako
Normal file
|
@ -0,0 +1,13 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/crud.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
<li>${h.link_to(u"Back to Report Codes", url(u'reportcodes'))}</li>
|
||||
% if form.readonly:
|
||||
<li>${h.link_to(u"Edit this Report Code", url(u'reportcode.update', uuid=form.fieldset.model.uuid))}</li>
|
||||
% elif form.updating:
|
||||
<li>${h.link_to(u"View this Report Code", url(u'reportcode.read', uuid=form.fieldset.model.uuid))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
12
tailbone/templates/reportcodes/index.mako
Normal file
12
tailbone/templates/reportcodes/index.mako
Normal file
|
@ -0,0 +1,12 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%inherit file="/grid.mako" />
|
||||
|
||||
<%def name="title()">Report Codes</%def>
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
% if request.has_perm(u'reportcodes.create'):
|
||||
<li>${h.link_to(u"Create a new Report Code", url(u'reportcode.create'))}</li>
|
||||
% endif
|
||||
</%def>
|
||||
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue