Expose Members master view; add CORE link to member tab of profile view

This commit is contained in:
Lance Edgar 2020-03-18 11:31:55 -05:00
parent 89a4bc50d7
commit 099fe14de1
3 changed files with 18 additions and 3 deletions

View file

@ -54,9 +54,9 @@ def simple_menus(request):
'type': 'menu', 'type': 'menu',
'items': [ 'items': [
{ {
'title': "All People", 'title': "Members",
'url': url('people'), 'url': url('members'),
'perm': 'people.list', 'perm': 'members.list',
}, },
{ {
'title': "Customers", 'title': "Customers",
@ -68,6 +68,11 @@ def simple_menus(request):
'url': url('employees'), 'url': url('employees'),
'perm': 'employees.list', 'perm': 'employees.list',
}, },
{
'title': "All People",
'url': url('people'),
'perm': 'people.list',
},
], ],
}, },
{ {

View file

@ -10,5 +10,14 @@
${parent.render_customer_panel_buttons(customer)} ${parent.render_customer_panel_buttons(customer)}
</%def> </%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()} ${parent.body()}

View file

@ -20,6 +20,7 @@ def includeme(config):
config.include('rattail_demo.web.views.email') config.include('rattail_demo.web.views.email')
config.include('rattail_demo.web.views.employees') config.include('rattail_demo.web.views.employees')
config.include('tailbone.views.families') config.include('tailbone.views.families')
config.include('tailbone.views.members')
config.include('tailbone.views.messages') config.include('tailbone.views.messages')
config.include('rattail_demo.web.views.people') config.include('rattail_demo.web.views.people')
config.include('rattail_demo.web.views.products') config.include('rattail_demo.web.views.products')