Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add images and question for portable ramp #266

Merged
merged 3 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion assets/question_catalog/locales/en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,18 @@
"@portableRampLengthName": {},
"portableRampLengthText": "How long is the portable wheelchair ramp?",
"@portableRampLengthText": {},
"portableRampLengthDescription": "Portable ramps help wheelchair users to overcome gaps or steps (when getting on or off a vehicle).",
"portableRampLengthDescription": "The length of an (unfolded or maximum extended) portable ramp is important for wheelchair users, because in combination with other factors one can determine the possible inclination of the ramp while in use.",
"@portableRampLengthDescription": {},
"portableRampLengthPlaceholder": "Ramp length",
"@portableRampLengthPlaceholder": {},
"portableRampWidthName": "Ramp width",
"@portableRampWidthhName": {},
"portableRampWidthText": "How wide is the portable wheelchair ramp?",
"@portableRampWidthText": {},
"portableRampWidthDescription": "The maximum usable width of an (unfolded) portable ramp is important to know for wheelchair users as it is one of the defining factors whether they can use the ramp.",
"@portableRampWidthDescription": {},
"portableRampWidthPlaceholder": "Ramp width",
"@portableRampWidthPlaceholder": {},
"portableRampLoadCapacityName": "Ramp load capacity",
"@portableRampLoadCapacityName": {},
"portableRampLoadCapacityText": "What is the maximum load capacity of the portable ramp?",
Expand Down
Loading