diff --git a/corporal/web/menus.py b/corporal/web/menus.py index 949799c..c8b0b15 100644 --- a/corporal/web/menus.py +++ b/corporal/web/menus.py @@ -28,6 +28,34 @@ def simple_menus(request): ], } + reports_menu = { + 'title': "Reports", + 'type': 'menu', + 'items': [ + { + 'title': "New Report", + 'route': 'report_output.create', + 'perm': 'report_output.create', + }, + { + 'title': "Generated Reports", + 'route': 'report_output', + 'perm': 'report_output.list', + }, + { + 'title': "Problem Reports", + 'route': 'problem_reports', + 'perm': 'problem_reports.list', + }, + {'type': 'sep'}, + { + 'title': "Poser Reports", + 'route': 'poser.reports', + 'perm': 'poser.reports.list', + }, + ], + } + admin_menu = { 'title': "Admin", 'type': 'menu', @@ -90,6 +118,7 @@ def simple_menus(request): menus = [ corepos_menu, batch_menu, + reports_menu, admin_menu, ] diff --git a/corporal/web/views/__init__.py b/corporal/web/views/__init__.py index cb8f106..025012d 100644 --- a/corporal/web/views/__init__.py +++ b/corporal/web/views/__init__.py @@ -13,6 +13,8 @@ def includeme(config): config.include('tailbone.views.upgrades') config.include('tailbone.views.progress') config.include('tailbone.views.importing') + config.include('tailbone.views.poser') + config.include('tailbone.views.reports') # main table views config.include('tailbone.views.email')