From 099fe14de19b7886610209a45a7e537febf1f1b3 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 18 Mar 2020 11:31:55 -0500 Subject: [PATCH] Expose Members master view; add CORE link to member tab of profile view --- rattail_demo/web/menus.py | 11 ++++++++--- .../web/templates/people/view_profile_buefy.mako | 9 +++++++++ rattail_demo/web/views/__init__.py | 1 + 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/rattail_demo/web/menus.py b/rattail_demo/web/menus.py index ff063f7..9b699e9 100644 --- a/rattail_demo/web/menus.py +++ b/rattail_demo/web/menus.py @@ -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', + }, ], }, { diff --git a/rattail_demo/web/templates/people/view_profile_buefy.mako b/rattail_demo/web/templates/people/view_profile_buefy.mako index 58854b3..78b61da 100644 --- a/rattail_demo/web/templates/people/view_profile_buefy.mako +++ b/rattail_demo/web/templates/people/view_profile_buefy.mako @@ -10,5 +10,14 @@ ${parent.render_customer_panel_buttons(customer)} +<%def name="render_member_panel_buttons(member)"> + + View in CORE Office + + ${parent.render_member_panel_buttons(member)} + + ${parent.body()} diff --git a/rattail_demo/web/views/__init__.py b/rattail_demo/web/views/__init__.py index 77c892f..8784dd8 100644 --- a/rattail_demo/web/views/__init__.py +++ b/rattail_demo/web/views/__init__.py @@ -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')