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

Add the field, time, in the graph selector.

parent 27ac952d
......@@ -368,6 +368,7 @@
'Modified By': 'Modified By',
'Modified On': 'Modified On',
'Modify': 'Modifier',
'month': 'mois',
'my_authors': 'autheurs du laboratoire',
'Name': 'Nom',
'Name of a function located in the modules list_postprocessing. Can be a list of name separated by comma.': 'Liste de fonction du module list_postprocessing, séparé par une virgule. Les fonctions disponibles sont : clean, highlight_my_authors, highlight_my_speaker, remove_undef.',
......
......@@ -15,6 +15,7 @@ virtdb.define_table('graph_selector',
Field('id_authors_roles', 'reference authors_roles', label='Role'),
Field('id_graphs', 'reference graphs', label='Graph'),
Field('cumulative', 'boolean', default=True),
Field('time', 'string', default=T('month')),
Field('format', 'string', default='html', label='Format'))
virtdb.graph_selector.id_authors_roles.requires = IS_IN_DB(db, 'authors_roles.role')
......@@ -23,6 +24,7 @@ virtdb.graph_selector.id_projects.requires = IS_IN_DB(db, 'projects.project')
virtdb.graph_selector.id_teams.requires = IS_IN_DB(db, 'teams.team')
virtdb.graph_selector.format.requires = IS_IN_SET(['html', 'pdf', 'png'])
virtdb.graph_selector.time.requires = IS_IN_SET([T('month'), T('year')])
#-------------------------------------------------------------------------------
#
......
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