Commit 50f35ab6 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish the history report

parent 8d272785
......@@ -37,6 +37,7 @@
'enter a number between %(min)g and %(max)g': 'enter a number between %(min)g and %(max)g',
'enter an integer between %(min)g and %(max)g': 'enter an integer between %(min)g and %(max)g',
'Event': 'Evènement',
'Event category': 'Event category',
'events': 'évènements',
'Executed': 'Executé',
'Filter agencies': 'Filtrer les agences',
......
......@@ -38,8 +38,12 @@ virtdb.define_table('history_selector',
Field('id_people', db.people, label='Person'),
Field('id_teams', db.teams, label='Team'),
Field('id_projects', db.projects, label='Project'),
Field('id_events', db.projects, label='Event'),
Field('format', 'string', default='html'))
virtdb.history_selector.id_events.requires = \
IS_IN_DB(db, 'events.id', 'events.event')
virtdb.history_selector.id_people.requires = \
IS_IN_DB(db, 'people.id', 'people.last_name')
......
......@@ -12,7 +12,7 @@ storeModifier = dbui.StoreModifier('categories')
storeModifier.orderby(db.categories.code)
storeModifier = dbui.StoreModifier('events')
storeModifier.orderby(db.events.category, db.events.event)
storeModifier.orderby(db.events.event)
storeModifier = dbui.StoreModifier('history')
storeModifier.orderby(~db.history.id)
......
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