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

Modified the history table.

parent 415864e7
......@@ -104,6 +104,8 @@
'Select': 'Selectionnez',
'Select a teams and/or a project !!!': 'Select a teams and/or a project !!!',
'select...': 'selectionner...',
'Stage Title': 'Titre du stage',
'Stage University': 'Université',
'Start': 'Start',
'Start Date': 'Date de début',
'startswith': 'startswith',
......
......@@ -166,28 +166,35 @@ db.define_table("history",
Field("id_teams", db.teams, default=undef_id, label='Team'),
Field("id_projects", db.projects, default=undef_id, label='Project'),
Field("id_categories", db.categories, default=undef_id, label='Category'),
Field("id_agencies", db.agencies, default=undef_id, label='Agency'),
Field("cdd_flag", "boolean", default=False, label="CDD"),
Field("id_agencies", db.agencies, default=undef_id, label='Agency'),
Field("id_events", db.events, default=undef_id, label='Event'),
Field("start_date", "date", default=today, notnull=True),
Field("end_date", "date"),
Field("percentage", "integer", default=100),
Field("stage_title", "text"),
Field("stage_university", "text"),
Field("note", "text"),
migrate="history.table")
db.history.id_agencies.requires = \
IS_IN_DB(db, 'agencies.id', 'agencies.agency')
db.history.id_categories.requires = \
IS_IN_DB(db, 'categories.id', 'categories.code')
db.history.id_events.requires = \
IS_IN_DB(db, 'events.id', 'events.event')
db.history.id_people.requires = \
IS_IN_DB(db, 'people.id', 'people.last_name')
db.history.id_teams.requires = \
IS_IN_DB(db, 'teams.id', 'teams.team')
db.history.id_projects.requires = \
IS_IN_DB(db, 'projects.id', 'projects.project')
db.history.id_categories.requires = \
IS_IN_DB(db, 'categories.id', 'categories.code')
db.history.id_teams.requires = \
IS_IN_DB(db, 'teams.id', 'teams.team')
db.history.id_agencies.requires = \
IS_IN_DB(db, 'agencies.id', 'agencies.agency')
db.define_table("responsibilities",
Field("id_people", db.people, default=undef_id, label='Person'),
......
......@@ -20,6 +20,7 @@
'projects.project',
'categories.code',
'history.cdd_flag',
'events.event',
'history.start_date',
'history.percentage'],
headers='labels',
......
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