Commit 0e86e554 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update ui_events.py to display event models via a grid.

parent dd427c00
......@@ -8,7 +8,10 @@
#
#-------------------------------------------------------------------------------
fieldsModifier = dbui.FieldsModifier('events')
fieldsModifier.configure_field('data', xtype='xuserdata')
fieldsModifier.configure_field('data',
colProperty={'width': 70},
colType={'width': 70},
xtype='xuserdata')
#-------------------------------------------------------------------------------
#
......@@ -25,6 +28,24 @@ formModifier.configure(plugins=['pUserDataConsistency'], width=450)
#-------------------------------------------------------------------------------
gridModifier = dbui.GridModifier('events')
gridModifier.configure_column('event', width=30)
gridModifier.hide_columns('data')
row_widget = {
'ptype': 'rowwidget',
'widget': {
'xtype': 'xuserdata',
'bind': {
'value': '{record.EventsData}'
},
'defaults': {'anchor': '90%'},
'colProperty': {'width': 80},
'colType': {'width': 80},
'padding': '10 0 12 50',
'readOnly': True
}
}
gridModifier.configure(plugins=[row_widget])
#-------------------------------------------------------------------------------
#
......
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