Add basic support for datasync views

Still no actual daemon wired up yet, but can fake it for UI with this
This commit is contained in:
Lance Edgar 2016-12-11 21:21:44 -06:00
parent db9deffaa6
commit e9998cb597
2 changed files with 5 additions and 1 deletions

View file

@ -110,7 +110,7 @@
</li> </li>
% endif % endif
% if request.has_any_perm('users.list', 'roles.list', 'emailprofiles.list', 'settings.list'): % if request.has_any_perm('users.list', 'roles.list', 'emailprofiles.list', 'datasync.list', 'settings.list'):
<li> <li>
<a>Admin</a> <a>Admin</a>
<ul> <ul>
@ -123,6 +123,9 @@
% if request.has_perm('emailprofiles.list'): % if request.has_perm('emailprofiles.list'):
<li>${h.link_to("Email Profiles", url('emailprofiles'))}</li> <li>${h.link_to("Email Profiles", url('emailprofiles'))}</li>
% endif % endif
% if request.has_perm('datasync.list'):
<li>${h.link_to("DataSync Changes", url('datasyncchanges'))}</li>
% endif
% if request.has_perm('settings.list'): % if request.has_perm('settings.list'):
<li>${h.link_to("Settings", url('settings'))}</li> <li>${h.link_to("Settings", url('settings'))}</li>
% endif % endif

View file

@ -33,6 +33,7 @@ def includeme(config):
# main table views # main table views
config.include('tailbone.views.brands') config.include('tailbone.views.brands')
config.include('tailbone.views.customers') config.include('tailbone.views.customers')
config.include('tailbone.views.datasync')
config.include('tailbone.views.departments') config.include('tailbone.views.departments')
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')