summaryrefslogtreecommitdiff
path: root/archaeological_finds/ishtar_menu.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/ishtar_menu.py')
-rw-r--r--archaeological_finds/ishtar_menu.py29
1 files changed, 25 insertions, 4 deletions
diff --git a/archaeological_finds/ishtar_menu.py b/archaeological_finds/ishtar_menu.py
index daa12a37b..8cffe78e4 100644
--- a/archaeological_finds/ishtar_menu.py
+++ b/archaeological_finds/ishtar_menu.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (C) 2012-2015 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
+# Copyright (C) 2012-2016 Étienne Loks <etienne.loks_AT_peacefrogsDOTnet>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -46,16 +46,37 @@ MENU_SECTIONS = [
model=models.Find,
access_controls=['change_find',
'change_own_find']),
- # MenuItem('treatment_creation', _(u"Add a treatment"),
+ # MenuItem(
+ # 'treatment_creation', _(u"Add a treatment"),
# model=models.Treatment,
- # access_controls=['add_treatment',
- # 'add_own_treatment']),
+ #  access_controls=['change_find',
+ # 'change_own_find']),
MenuItem(
'find_deletion', _(u"Deletion"),
model=models.Find,
access_controls=['change_find',
'change_own_find']),
SectionItem(
+ 'find_basket', _(u"Basket"),
+ childs=[
+ MenuItem('find_basket_creation',
+ _(u"Creation"),
+ model=models.FindBasket,
+ access_controls=['change_find',
+ 'change_own_find']),
+ MenuItem('find_basket_modification_add',
+ _(u"Manage items"),
+ model=models.FindBasket,
+ access_controls=[
+ 'change_find',
+ 'change_own_find']),
+ MenuItem('find_basket_deletion',
+ _(u"Deletion"),
+ model=models.FindBasket,
+ access_controls=['change_find',
+ 'change_own_find']),
+ ]),
+ SectionItem(
'find_source', _(u"Documentation"),
childs=[
MenuItem('find_source_creation',