From abfa2be536e48efb4a1b64f5ff78ab3293e0ff19 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 2 Mar 2022 21:31:48 -0600 Subject: [PATCH] Add views, menus for Poser Reports --- corporal/web/menus.py | 29 +++++++++++++++++++++++++++++ corporal/web/views/__init__.py | 2 ++ 2 files changed, 31 insertions(+) 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')