Add politicians question type
This commit is contained in:
parent
4fe218166f
commit
2893f2bc53
16 changed files with 101 additions and 33 deletions
9
test/fixtures/questions.yml
vendored
9
test/fixtures/questions.yml
vendored
|
@ -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] %>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue