summaryrefslogtreecommitdiff
path: root/ishtar/ishtar_base/menus.py
diff options
context:
space:
mode:
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
commitb5a6644e1ff8a84bab082a0d18cffa321750a97b (patch)
tree3115a748d06a6dc40dd9aff3b3e59c3fb197108a /ishtar/ishtar_base/menus.py
parent9dfbab8d2ac9bc68c703706eaa360657d17d4fb5 (diff)
downloadIshtar-b5a6644e1ff8a84bab082a0d18cffa321750a97b.tar.bz2
Ishtar-b5a6644e1ff8a84bab082a0d18cffa321750a97b.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.py33
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"),