diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-06-30 00:52:50 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-06-30 00:52:50 +0200 |
commit | 04911d3534c2ee903ddaf4b831c42e70c3d28986 (patch) | |
tree | 3115a748d06a6dc40dd9aff3b3e59c3fb197108a /ishtar/ishtar_base/menus.py | |
parent | 78879daeb904ec89a2bb8ea2cdba9b00e228577e (diff) | |
download | Ishtar-04911d3534c2ee903ddaf4b831c42e70c3d28986.tar.bz2 Ishtar-04911d3534c2ee903ddaf4b831c42e70c3d28986.zip |
Sources creation modification and deletion for context records and archaelogical items (closes #497)
Diffstat (limited to 'ishtar/ishtar_base/menus.py')
-rw-r--r-- | ishtar/ishtar_base/menus.py | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/ishtar/ishtar_base/menus.py b/ishtar/ishtar_base/menus.py index f229e32f1..3d19e5b88 100644 --- a/ishtar/ishtar_base/menus.py +++ b/ishtar/ishtar_base/menus.py @@ -213,10 +213,21 @@ class Menu: childs=[ SectionItem('admin_add_sources', _(u"Add"), childs=[ - MenuItem('operation_source_add', _(u"Related to an operation"), + MenuItem('operation_source_creation', + _(u"Related to an operation"), model=models.OperationSource, access_controls=['change_operation', 'change_own_operation']), + MenuItem('record_source_creation', + _(u"Related to a context record"), + model=models.ContextRecordSource, + access_controls=['change_contextrecord', + 'change_own_contextrecord']), + MenuItem('item_source_creation', + _(u"Related to an archaelogical item"), + model=models.ItemSource, + access_controls=['change_item', + 'change_own_item']), ]), SectionItem('admin_mod_sources', _(u"Modify"), childs=[ @@ -225,6 +236,16 @@ class Menu: model=models.OperationSource, access_controls=['change_operation', 'change_own_operation']), + MenuItem('record_source_modification', + _(u"Related to a context record"), + model=models.ContextRecordSource, + access_controls=['change_contextrecord', + 'change_own_contextrecord']), + MenuItem('item_source_modification', + _(u"Related to an archaelogical item"), + model=models.ItemSource, + access_controls=['change_item', + 'change_own_item']), ]), SectionItem('admin_del_sources', _(u"Deletion"), childs=[ @@ -233,6 +254,16 @@ class Menu: model=models.OperationSource, access_controls=['change_operation', 'change_own_operation']), + MenuItem('record_source_deletion', + _(u"Related to a context record"), + model=models.ContextRecordSource, + access_controls=['change_contextrecord', + 'change_own_contextrecord']), + MenuItem('item_source_deletion', + _(u"Related to an archaelogical item"), + model=models.ItemSource, + access_controls=['change_item', + 'change_own_item']), ]), ]), SectionItem('warehouse', _(u"Warehouse"), |