Add views, menus for Poser Reports

This commit is contained in:
Lance Edgar 2022-03-02 21:31:48 -06:00
parent e829b6a6ce
commit abfa2be536
2 changed files with 31 additions and 0 deletions

View file

@ -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 = { admin_menu = {
'title': "Admin", 'title': "Admin",
'type': 'menu', 'type': 'menu',
@ -90,6 +118,7 @@ def simple_menus(request):
menus = [ menus = [
corepos_menu, corepos_menu,
batch_menu, batch_menu,
reports_menu,
admin_menu, admin_menu,
] ]

View file

@ -13,6 +13,8 @@ def includeme(config):
config.include('tailbone.views.upgrades') config.include('tailbone.views.upgrades')
config.include('tailbone.views.progress') config.include('tailbone.views.progress')
config.include('tailbone.views.importing') config.include('tailbone.views.importing')
config.include('tailbone.views.poser')
config.include('tailbone.views.reports')
# main table views # main table views
config.include('tailbone.views.email') config.include('tailbone.views.email')