Browse Source

Upstream uses select to mean dropdown and checkbox for... well checkboxes

pull/23/head
baarkerlounger 3 years ago
parent
commit
c4111f7546
  1. 4
      README.md
  2. 0
      app/views/form/_checkbox_question.html.erb
  3. 6
      config/forms/2021_2022.json

4
README.md

@ -66,11 +66,11 @@ The JSON should follow the structure:
snake case question name string: { snake case question name string: {
header: string, header: string,
hint_text: string, hint_text: string,
type: [text / numeric / radio / select / date ], type: [text / numeric / radio / checkbox / date ],
min: integer, (numeric only), min: integer, (numeric only),
max: integer, (numeric only), max: integer, (numeric only),
step: integer (numeric only), step: integer (numeric only),
answer_options: { (select and radio only) answer_options: { (checkbox and radio only)
"0": string, "0": string,
"1": string "1": string
} }

0
app/views/form/_select_question.html.erb → app/views/form/_checkbox_question.html.erb

6
config/forms/2021_2022.json

@ -361,7 +361,7 @@
"accessibility_requirements": { "accessibility_requirements": {
"header": "Are any of these affected by their condition or illness?", "header": "Are any of these affected by their condition or illness?",
"hint_text": "Select all that apply", "hint_text": "Select all that apply",
"type": "select", "type": "checkbox",
"answer_options": { "answer_options": {
"0": "Fully wheelchair accessible housing", "0": "Fully wheelchair accessible housing",
"1": "Wheelchair access to essential rooms", "1": "Wheelchair access to essential rooms",
@ -381,7 +381,7 @@
"condition_effects": { "condition_effects": {
"header": "Are any of these affected by their condition or illness?", "header": "Are any of these affected by their condition or illness?",
"hint_text": "Select all that apply", "hint_text": "Select all that apply",
"type": "select", "type": "checkbox",
"answer_options": { "answer_options": {
"0": "Vision - such as blindness or partial sight", "0": "Vision - such as blindness or partial sight",
"1": "Hearing - such as deafness or partial hearing", "1": "Hearing - such as deafness or partial hearing",
@ -1544,7 +1544,7 @@
"reasonable_preference_reason": { "reasonable_preference_reason": {
"header": "Why were they given reasonable preference?", "header": "Why were they given reasonable preference?",
"hint_text": "Select all that apply", "hint_text": "Select all that apply",
"type": "select", "type": "checkbox",
"answer_options": { "answer_options": {
"0": "Homeless or about to lose their home (within 56 days)", "0": "Homeless or about to lose their home (within 56 days)",
"1": "Living in insanitary or overcrowded or unsatisfactory housing", "1": "Living in insanitary or overcrowded or unsatisfactory housing",

Loading…
Cancel
Save