Commit 60716ad4 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add a series of grid filter.

parent 176b4d53
......@@ -158,9 +158,17 @@
'Fill': 'Remplir',
'Fill all fields': 'Remplir tous les champs',
'Filter': 'Filtrer',
'Filter categories': 'Filtrer les catégories',
'Filter collaborations': 'Filtrer les collaborations',
'Filter countries': 'Filtrer les pays',
'Filter cppm_authors': 'Filtrer les auteurs du CPPM',
'Filter diplomas': 'Filtrer les diplomes',
'Filter harvesters': 'Filtrer les moissonneurs',
'Filter lists': 'Filtrer les listes',
'Filter metrics': 'Filtrer les métriques',
'Filter publications': 'Filtrer les publications',
'Filter publishers': 'Filtrer les revues',
'Filter status': 'Filtrer les status',
'First Author': 'Premier Auteur',
'First name': 'First name',
'Footer': 'Pied de page',
......
......@@ -23,6 +23,11 @@ gridModifier = dbui.GridModifier('categories')
gridModifier.configure_column('code', width=10)
gridModifier.configure_column('usual', width=10)
gridModifier.append_filter(('code', 'contains', T('contains')))
gridModifier.append_filter(('usual', 'contains', T('contains')))
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
......
......@@ -21,6 +21,10 @@ fieldsModifier.configure_field('collaboration', xtype='textarea')
# GRID CONFIGURATiON
#
#-------------------------------------------------------------------------------
gridModifier = dbui.GridModifier('collaborations')
gridModifier.append_filter(('collaboration', 'contains', T('contains')), xtype='textfield')
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
#-------------------------------------------------------------------------------
#
......
......@@ -19,6 +19,10 @@
# GRID CONFIGURATiON
#
#-------------------------------------------------------------------------------
gridModifier = dbui.GridModifier('countries')
gridModifier.append_filter(('country', 'contains', T('contains')))
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
#-------------------------------------------------------------------------------
#
......
......@@ -31,6 +31,8 @@ formModifier.link_comboboxes(master=db.harvesters.controller,
masterHasSlaveData='controllers',
slaveExtJS={'hidden': True})
formModifier.configure(width=350)
#-------------------------------------------------------------------------------
#
# GRID CONFIGURATiON
......@@ -43,6 +45,15 @@ gridModifier.configure_column('max_records', width=70)
gridModifier.configure_column('ratio', width=40)
gridModifier.hide_columns('ratio')
gridModifier.append_filter(('id_teams', '==', T('is equal to')))
gridModifier.append_filter(('id_projects', '==', T('is equal to')))
gridModifier.append_filter(('controller', 'contains', T('contains')))
gridModifier.append_filter(('host', 'contains', T('contains')))
gridModifier.append_filter(('id_categories', '==', T('is equal to')))
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
......
......@@ -102,6 +102,10 @@ gridModifier.hide_columns('section_level_1',
'header_flag',
'footer_flag')
gridModifier.append_filter(('list', 'contains', T('contains')))
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
......
......@@ -102,6 +102,10 @@ gridModifier.hide_columns('axis_granularity_categories',
'header_flag',
'footer_flag')
gridModifier.append_filter(('metric', 'contains', T('contains')))
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
......
......@@ -19,6 +19,11 @@
# GRID CONFIGURATiON
#
#-------------------------------------------------------------------------------
gridModifier = dbui.GridModifier('publishers')
gridModifier.append_filter(('publisher', 'contains', T('contains')))
gridModifier.append_filter(('abbreviation', 'contains', T('contains')))
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
#-------------------------------------------------------------------------------
#
......
......@@ -22,6 +22,10 @@
gridModifier = dbui.GridModifier('status')
gridModifier.configure_column('code', width=10)
gridModifier.append_filter(('code', 'contains', T('contains')))
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
......
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