Add jump button, to view product in CORE Office

This commit is contained in:
Lance Edgar 2020-03-14 18:33:08 -05:00
parent 72a4c347d8
commit d7462f415d
2 changed files with 49 additions and 2 deletions

View 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()}