website/events/form_content.py
Jimmy Vargo dae67ce653 Update Events (#10)
This update restructures the events page code and provides additional functionality.
- Overwrite old entries on re-submission of previously used emails
- Build data and stats caches on launch for use in submission checks and stats regeneration
- Update to form content
- Move stats function to separate utils file

Reviewed-on: ayo/website#10
Co-authored-by: Jimmy Vargo <james@ayo.tokyo>
Co-committed-by: Jimmy Vargo <james@ayo.tokyo>
2024-05-07 18:59:57 +09:00

34 lines
1.5 KiB
Python

class FormContent:
times = {
'time-weekday-evenings': 'Monday to Thursday Evenings 月曜日〜木曜日の夕方',
'time-friday-evenings': 'Friday Evenings 金曜日の夕方',
'time-saturday-daytime': 'Saturday Daytime 土曜日の昼',
'time-saturday-evenings': 'Saturday Evenings 土曜日の夕方',
'time-sunday-daytime': 'Sunday Daytime 日曜日の昼',
'time-sunday-evenings': 'Sunday Evenings 日曜日の夕方'
}
topics = {
'topic-hardware': 'Hardware ハードウェア',
'topic-containerization': 'Containerization コンテナー開発 (Docker, etc.)',
'topic-programming-languages': 'Programming Languages プログラミング言語 (Python, Rust, C++, etc.)',
'topic-linux': 'Linux',
'topic-ai': 'AI / Deep Learning libraries ディープラーニングのライブラリー (Pytorch, Tensorflow, etc.) ',
'topic-web-dev': 'Web Development ウェブ開発'
}
background = {
'background-business': 'Business / Sales 営業',
'background-manager': 'Manager マネージャー',
'background-engineer': 'Engineer エンジニア',
'background-other': 'Other その他'
}
languages = {
'language-english': 'English 英語',
'language-japanese': 'Japanese 日本語'
}
all_keys = set(times | topics | background | languages) | {
'name',
'email',
'topic-other',
'presentation-interest'
}