Add politicians question type

This commit is contained in:
Charlotte Van Petegem 2025-05-17 11:58:07 +02:00
parent 4fe218166f
commit 2893f2bc53
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
16 changed files with 101 additions and 33 deletions

View file

@ -6,6 +6,7 @@
#
# id :integer not null, primary key
# answer_kind :integer not null
# data :text
# public_asset_path :string
# question_kind :integer default("simple"), not null
# text :text not null
@ -115,7 +116,13 @@ politics_regenpijpen:
politics_schepenen:
section: politics
text: Verbind de schepenen en hun bevoegdheden.
text: Verplaats de bevoegdheden zodat ze bij de juiste schepen staan.
data: '<%=
JSON.dump({
left: ["Mathias De Clercq", "Hafsa El-Bazioui", "Astrid De Bruycker", "Sofie Bracke", "Evita Willaert", "Joris Vandenbroucke", "Bram Van Braeckevelt", "Burak Nalli", "Filip Watteeuw", "Cristophe Peeters"].shuffle,
right: ["Burgemeester", "Participatie, Buurtwerk, Mondiale Solidariteit, Facilitair Management en Digitalisering", "Sociale Vooruitgang, Gezondheid, Ouderenbeleid en Cultuur", "Economie, Haven, Handel, Toerisme en Openbare netheid", "Onderwijs, Opvoeding, Jeugd, Gezin en Outreachend Werk", "Mobiliteit, Ruimte, Stadsontwikkeling en Plezier", "Natuur en Groen, Werk en Sociale Economie, Gelijke kansen en Sport", "Personeelsbeleid, Burgerzaken en Dienstverlening", "Wonen, Milieu, Klimaat en Energie", "Financiën, Stedenbouw, Erfgoed en Administratieve vereenvoudiging"].shuffle
})
%>'
answer_kind: <%= Question.answer_kinds[:politicians] %>
question_kind: <%= Question.question_kinds[:simple] %>

View file

@ -4,6 +4,7 @@
#
# id :integer not null, primary key
# answer_kind :integer not null
# data :text
# public_asset_path :string
# question_kind :integer default("simple"), not null
# text :text not null