summaryrefslogtreecommitdiff
path: root/archaeological_finds/ishtar_menu.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-11-30 13:20:53 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-11-30 13:20:53 +0100
commit8b666443667f92e014d70a4247c7885375bba610 (patch)
tree7e216f7c036ae568407d46359dea361f2a641098 /archaeological_finds/ishtar_menu.py
parent62cac0ec03a96d5f358148cf6dff2a21ccf20854 (diff)
downloadIshtar-8b666443667f92e014d70a4247c7885375bba610.tar.bz2
Ishtar-8b666443667f92e014d70a4247c7885375bba610.zip
Simple treatment form. Treatment listing. (refs #3365)
Diffstat (limited to 'archaeological_finds/ishtar_menu.py')
-rw-r--r--archaeological_finds/ishtar_menu.py36
1 files changed, 30 insertions, 6 deletions
diff --git a/archaeological_finds/ishtar_menu.py b/archaeological_finds/ishtar_menu.py
index f638a60b2..1ab0cb575 100644
--- a/archaeological_finds/ishtar_menu.py
+++ b/archaeological_finds/ishtar_menu.py
@@ -46,11 +46,6 @@ MENU_SECTIONS = [
model=models.Find,
access_controls=['change_find',
'change_own_find']),
- # MenuItem(
- # 'treatment_creation', _(u"Add a treatment"),
- # model=models.Treatment,
- # access_controls=['change_find',
- # 'change_own_find']),
MenuItem(
'find_deletion', _(u"Deletion"),
model=models.Find,
@@ -99,6 +94,35 @@ MENU_SECTIONS = [
model=models.FindSource,
access_controls=['change_find',
'change_own_find']),
- ])
+ ]),
+ # MenuItem(
+ # 'treatment_creation', _(u"Add a treatment"),
+ # model=models.Treatment,
+ # access_controls=['change_find',
+ # 'change_own_find']),
+ SectionItem(
+ 'find_treatments', _(u"Treatments"),
+ childs=[
+ MenuItem('treatment_search',
+ _(u"Search"),
+ model=models.Treatment,
+ access_controls=['view_find',
+ 'view_own_find']),
+ MenuItem('treatment_creation',
+ _(u"Creation"),
+ model=models.Treatment,
+ access_controls=['change_find',
+ 'change_own_find']),
+ MenuItem('treatment_modification',
+ _(u"Modification"),
+ model=models.Treatment,
+ access_controls=['change_find',
+ 'change_own_find']),
+ MenuItem('treatment_deletion',
+ _(u"Deletion"),
+ model=models.Treatment,
+ access_controls=['change_find',
+ 'change_own_find']),
+ ]),
]))
]