Commit dee20e15 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add linked field in the marc12_selector and harvester_seclector.

parent 2e54a0e9
......@@ -2,7 +2,7 @@
"""
@auth.requires_login()
#@auth.requires_login()
def index():
session.role = 'admin'
return LOAD('plugin_dbui', 'index', vars=request.vars)
......@@ -68,6 +68,26 @@ formModifier.configure(buttonAlign='right',
defaults={'height': 310})
#
# marc12_selector (linked fields)r
#
formModifier = dbui.FormModifier('marc12_selector')
formModifier.link_comboboxes(masterName='id_projects',
slaveNames='id_teams',
storeName='organisationStore',
displayFieldMaster='ProjectsProject',
valueFieldMaster='OrganisationId_projects',
displayFieldSlaves='TeamsTeam',
valueFieldSlaves='OrganisationId_teams')
formModifier.link_comboboxes(masterName='controller',
slaveNames='id_categories',
storeName='controllersStore',
displayFieldMaster='ControllersController',
valueFieldMaster='ControllersController',
displayFieldSlaves='CategoriesCode',
valueFieldSlaves='ControllersId_categories')
#
# metrics (TabPanel)
#
formModifier = dbui.FormModifier('metrics')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment