Skip to content

Commit

Permalink
Add question for portable ramp width
Browse files Browse the repository at this point in the history
  • Loading branch information
7h30n3 committed Jun 24, 2024
1 parent 48204a9 commit 00e2675
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
39 changes: 38 additions & 1 deletion assets/question_catalog/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@
"text": "@portableRampLengthText",
"description": "@portableRampLengthDescription",
"image": [
"assets/question_catalog/images/wheelchair_ramp_1.jpg"
"assets/question_catalog/images/wheelchair_ramp_length.png"
]
},
"answer": {
Expand Down Expand Up @@ -1006,6 +1006,43 @@
}
]
},
{
"question": {
"name": "@portableRampWidthName",
"text": "@portableRampWidthText",
"description": "@portableRampWidthDescription",
"image": [
"assets/question_catalog/images/wheelchair_ramp_width.png"
]
},
"answer": {
"type": "Number",
"input": {
"placeholder": "@portableRampWidthPlaceholder",
"decimals": 0,
"min": 20,
"max": 200,
"unit": "@unitCentimeter"
},
"constructor": {
"ramp:portable:maxwidth:physical": [
"REPLACE", "/\\.?0{1,2}$/", "", [
"INSERT", ".", "-2", [
"PAD", "0", "3", "$input"
]
]
]
}
},
"conditions": [
{
"osm_tags": {
"ramp:portable": "yes",
"ramp:portable:maxwidth:physical": false
}
}
]
},
{
"question": {
"name": "@portableRampLoadCapacityName",
Expand Down
8 changes: 8 additions & 0 deletions assets/question_catalog/locales/en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@
"@portableRampLengthDescription": {},
"portableRampLengthPlaceholder": "Ramp length",
"@portableRampLengthPlaceholder": {},
"portableRampWidthName": "Ramp width",
"@portableRampWidthhName": {},
"portableRampWidthText": "How wide is the portable wheelchair ramp?",
"@portableRampWidthText": {},
"portableRampWidthDescription": "Portable ramps help wheelchair users to overcome gaps or steps (when getting on or off a vehicle).",
"@portableRampWidthDescription": {},
"portableRampWidthPlaceholder": "Ramp width",
"@portableRampWidthPlaceholder": {},
"portableRampLoadCapacityName": "Ramp load capacity",
"@portableRampLoadCapacityName": {},
"portableRampLoadCapacityText": "What is the maximum load capacity of the portable ramp?",
Expand Down

0 comments on commit 00e2675

Please sign in to comment.