diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-12 15:15:09 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-12-12 15:15:09 +0100 |
commit | e401941a57c84157a6cec7a6cd37e107fb147377 (patch) | |
tree | 910c99cc3b67c0cd914547692e3a540c10df8181 /archaeological_finds/ishtar_menu.py | |
parent | 9656d23c15770c57740284c21fc127779612dcc6 (diff) | |
download | Ishtar-e401941a57c84157a6cec7a6cd37e107fb147377.tar.bz2 Ishtar-e401941a57c84157a6cec7a6cd37e107fb147377.zip |
Manage treatment / treatment files sources
Diffstat (limited to 'archaeological_finds/ishtar_menu.py')
-rw-r--r-- | archaeological_finds/ishtar_menu.py | 53 |
1 files changed, 51 insertions, 2 deletions
diff --git a/archaeological_finds/ishtar_menu.py b/archaeological_finds/ishtar_menu.py index aa3899fa3..4b530363b 100644 --- a/archaeological_finds/ishtar_menu.py +++ b/archaeological_finds/ishtar_menu.py @@ -150,7 +150,32 @@ MENU_SECTIONS = [ model=AdministrativeAct, access_controls=['change_administrativeact']), ] - ) + ), + SectionItem( + 'treatmentfile_source', _(u"Source"), + childs=[ + MenuItem('treatmentfile_source_search', + _(u"Search"), + model=models.TreatmentFileSource, + access_controls=['view_treatmentfile', + 'view_own_treatmentfile']), + MenuItem('treatmentfile_source_creation', + _(u"Creation"), + model=models.TreatmentFileSource, + access_controls=['change_treatmentfile', + 'change_own_treatmentfile']), + MenuItem('treatmentfile_source_modification', + _(u"Modification"), + model=models.TreatmentFileSource, + access_controls=['change_treatmentfile', + 'change_own_treatmentfile']), + MenuItem('treatmentfile_source_deletion', + _(u"Deletion"), + model=models.TreatmentFileSource, + access_controls=['change_treatmentfile', + 'change_own_treatmentfile']), + ] + ), ] )), (70, @@ -205,8 +230,32 @@ MENU_SECTIONS = [ _(u"Documents"), model=AdministrativeAct, access_controls=['change_administrativeact']), + ]), + SectionItem( + 'treatment_source', _(u"Source"), + childs=[ + MenuItem('treatment_source_search', + _(u"Search"), + model=models.TreatmentSource, + access_controls=['view_treatment', + 'view_own_treatment']), + MenuItem('treatment_source_creation', + _(u"Creation"), + model=models.TreatmentSource, + access_controls=['change_treatment', + 'change_own_treatment']), + MenuItem('treatment_source_modification', + _(u"Modification"), + model=models.TreatmentSource, + access_controls=['change_treatment', + 'change_own_treatment']), + MenuItem('treatment_source_deletion', + _(u"Deletion"), + model=models.TreatmentSource, + access_controls=['change_treatment', + 'change_own_treatment']), ] - ) + ), ] )), ] |