Add jump buttons to view product, vendor in CORE Office
hopefully can use the same pattern for anything else that comes up
This commit is contained in:
parent
32f381bdd2
commit
dbde3cbfbe
5 changed files with 145 additions and 0 deletions
18
tailbone_corepos/templates/corepos-util.mako
Normal file
18
tailbone_corepos/templates/corepos-util.mako
Normal file
|
@ -0,0 +1,18 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
|
||||
<%def name="render_xref_helper()">
|
||||
<div class="object-helper">
|
||||
<h3>Cross-Reference</h3>
|
||||
<div class="object-helper-content">
|
||||
<b-button type="is-primary"
|
||||
% if core_office_url:
|
||||
tag="a" href="${core_office_url}" target="_blank"
|
||||
% else:
|
||||
disabled title="${core_office_why_no_url}"
|
||||
% endif
|
||||
>
|
||||
View in CORE Office
|
||||
</b-button>
|
||||
</div>
|
||||
</div>
|
||||
</%def>
|
11
tailbone_corepos/templates/products/view.mako
Normal file
11
tailbone_corepos/templates/products/view.mako
Normal file
|
@ -0,0 +1,11 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="tailbone:templates/products/view.mako" />
|
||||
<%namespace file="/corepos-util.mako" import="render_xref_helper" />
|
||||
|
||||
<%def name="object_helpers()">
|
||||
${parent.object_helpers()}
|
||||
${render_xref_helper()}
|
||||
</%def>
|
||||
|
||||
|
||||
${parent.body()}
|
11
tailbone_corepos/templates/vendors/view.mako
vendored
Normal file
11
tailbone_corepos/templates/vendors/view.mako
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="/master/view.mako" />
|
||||
<%namespace file="/corepos-util.mako" import="render_xref_helper" />
|
||||
|
||||
<%def name="object_helpers()">
|
||||
${parent.object_helpers()}
|
||||
${render_xref_helper()}
|
||||
</%def>
|
||||
|
||||
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue