From 1da20a5b5bb591c0789f570399d9c644ec3e4263 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 12 Dec 2016 15:15:09 +0100 Subject: Manage treatment / treatment files sources --- archaeological_finds/ishtar_menu.py | 53 +++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) (limited to 'archaeological_finds/ishtar_menu.py') 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']), ] - ) + ), ] )), ] -- cgit v1.2.3