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

Update ui_events.py to add a card layout to the form.

parent 0e86e554
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
'Created On': 'Created On', 'Created On': 'Created On',
'Data': 'Data', 'Data': 'Data',
'Data base scheme': 'Schéma base de donnée', 'Data base scheme': 'Schéma base de donnée',
'Data model': 'Modèle des données',
'Data people': 'Les données des personnes', 'Data people': 'Les données des personnes',
'Database field encoded as tablename.fieldname.': 'Champ de la base de donnée encodé tablename.fieldname.', 'Database field encoded as tablename.fieldname.': 'Champ de la base de donnée encodé tablename.fieldname.',
'database schema': 'schéma de la base de données', 'database schema': 'schéma de la base de données',
......
...@@ -11,6 +11,7 @@ fieldsModifier = dbui.FieldsModifier('events') ...@@ -11,6 +11,7 @@ fieldsModifier = dbui.FieldsModifier('events')
fieldsModifier.configure_field('data', fieldsModifier.configure_field('data',
colProperty={'width': 70}, colProperty={'width': 70},
colType={'width': 70}, colType={'width': 70},
fieldLabel='',
xtype='xuserdata') xtype='xuserdata')
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
...@@ -19,6 +20,15 @@ fieldsModifier.configure_field('data', ...@@ -19,6 +20,15 @@ fieldsModifier.configure_field('data',
# #
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
formModifier = dbui.FormModifier('events') formModifier = dbui.FormModifier('events')
formModifier.merge_fields('event',
'definition',
title=T('General'))
formModifier.merge_fields('data',
title=T('Data model'))
formModifier.set_mapper(dbui.map_tabpanel)
formModifier.configure(plugins=['pUserDataConsistency'], width=450) formModifier.configure(plugins=['pUserDataConsistency'], width=450)
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
......
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