Expose Members master view; add CORE link to member tab of profile view
This commit is contained in:
parent
89a4bc50d7
commit
099fe14de1
|
@ -54,9 +54,9 @@ def simple_menus(request):
|
|||
'type': 'menu',
|
||||
'items': [
|
||||
{
|
||||
'title': "All People",
|
||||
'url': url('people'),
|
||||
'perm': 'people.list',
|
||||
'title': "Members",
|
||||
'url': url('members'),
|
||||
'perm': 'members.list',
|
||||
},
|
||||
{
|
||||
'title': "Customers",
|
||||
|
@ -68,6 +68,11 @@ def simple_menus(request):
|
|||
'url': url('employees'),
|
||||
'perm': 'employees.list',
|
||||
},
|
||||
{
|
||||
'title': "All People",
|
||||
'url': url('people'),
|
||||
'perm': 'people.list',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
@ -10,5 +10,14 @@
|
|||
${parent.render_customer_panel_buttons(customer)}
|
||||
</%def>
|
||||
|
||||
<%def name="render_member_panel_buttons(member)">
|
||||
<b-button type="is-primary"
|
||||
tag="a" :href="member.view_corepos_url" target="_blank"
|
||||
:disabled="!member.view_corepos_url">
|
||||
View in CORE Office
|
||||
</b-button>
|
||||
${parent.render_member_panel_buttons(member)}
|
||||
</%def>
|
||||
|
||||
|
||||
${parent.body()}
|
||||
|
|
|
@ -20,6 +20,7 @@ def includeme(config):
|
|||
config.include('rattail_demo.web.views.email')
|
||||
config.include('rattail_demo.web.views.employees')
|
||||
config.include('tailbone.views.families')
|
||||
config.include('tailbone.views.members')
|
||||
config.include('tailbone.views.messages')
|
||||
config.include('rattail_demo.web.views.people')
|
||||
config.include('rattail_demo.web.views.products')
|
||||
|
|
Loading…
Reference in a new issue