Show "view in CORE" buttons for profile view
This commit is contained in:
parent
42635e9ece
commit
dca270f682
27
tailbone_corepos/templates/people/view_profile_buefy.mako
Normal file
27
tailbone_corepos/templates/people/view_profile_buefy.mako
Normal file
|
@ -0,0 +1,27 @@
|
|||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="tailbone:templates/people/view_profile_buefy.mako" />
|
||||
|
||||
<%def name="render_customer_panel_buttons(customer)">
|
||||
<b-button type="is-primary"
|
||||
v-if="customer.view_corepos_url"
|
||||
tag="a" :href="customer.view_corepos_url" target="_blank"
|
||||
icon-pack="fas"
|
||||
icon-left="external-link-alt">
|
||||
View in CORE Office
|
||||
</b-button>
|
||||
${parent.render_customer_panel_buttons(customer)}
|
||||
</%def>
|
||||
|
||||
<%def name="render_member_panel_buttons(member)">
|
||||
<b-button type="is-primary"
|
||||
v-if="member.view_corepos_url"
|
||||
tag="a" :href="member.view_corepos_url" target="_blank"
|
||||
icon-pack="fas"
|
||||
icon-left="external-link-alt">
|
||||
View in CORE Office
|
||||
</b-button>
|
||||
${parent.render_member_panel_buttons(member)}
|
||||
</%def>
|
||||
|
||||
|
||||
${parent.body()}
|
Loading…
Reference in a new issue