|
4 | 4 | # hitobito_swb and licensed under the Affero General Public License version 3
|
5 | 5 | # or later. See the COPYING file at the top-level directory or at
|
6 | 6 | # https://github.com/hitobito/hitobito_swb.
|
| 7 | +# |
| 8 | +TOURNAMENT_CHOICES = [ |
| 9 | + "HE / SM", |
| 10 | + "DE / SD", |
| 11 | + "HD / DM", |
| 12 | + "DD / DD", |
| 13 | + "MX / DX" |
| 14 | +] |
7 | 15 |
|
8 | 16 | Event::Question.seed_global({
|
9 | 17 | event_type: "Event::Tournament", # Is derived for every event
|
10 | 18 | multiple_choices: true,
|
11 | 19 | admin: true,
|
12 | 20 | disclosure: :required,
|
13 | 21 | translation_attributes: [
|
14 |
| - { locale: "de", question: "In welchen Disziplinen tritts du an?", choices: "Single,Double,Mixed" }, |
15 |
| - { locale: "fr", question: "Dans quelles disciplines concourrez-vous?", choices: "Single,Double,Mixed" }, |
16 |
| - { locale: "it", question: "In quali discipline gareggia?", choices: "Single,Double,Mixed" }, |
17 |
| - { locale: "en", question: "In which disciplines do you compete?", choices: "Single,Double,Mixed" }, |
| 22 | + { locale: "de", question: "In welchen Disziplinen tritts du an?", choices: TOURNAMENT_CHOICES }, |
| 23 | + { locale: "fr", question: "Dans quelles disciplines concourrez-vous?", choices: TOURNAMENT_CHOICES }, |
| 24 | + { locale: "it", question: "In quali discipline gareggia?", choices: TOURNAMENT_CHOICES }, |
| 25 | + { locale: "en", question: "In which disciplines do you compete?", choices: TOURNAMENT_CHOICES }, |
18 | 26 | ]
|
19 | 27 | })
|
0 commit comments