Add jump button, to view product in CORE Office
This commit is contained in:
parent
72a4c347d8
commit
d7462f415d
2 changed files with 49 additions and 2 deletions
27
rattail_demo/web/templates/products/view.mako
Normal file
27
rattail_demo/web/templates/products/view.mako
Normal file
|
@ -0,0 +1,27 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="tailbone:templates/products/view.mako" />
|
||||
|
||||
<%def name="object_helpers()">
|
||||
${parent.object_helpers()}
|
||||
${self.render_xref_helper()}
|
||||
</%def>
|
||||
|
||||
<%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>
|
||||
|
||||
|
||||
${parent.body()}
|
Loading…
Add table
Add a link
Reference in a new issue