Add level indication to bike pumps, fixes #434

This commit is contained in:
Pieter Vander Vennet 2021-07-18 15:06:36 +02:00
parent 459fc22da5
commit 1caf70ca96
2 changed files with 37 additions and 0 deletions

View file

@ -249,6 +249,7 @@
}
]
},
"level",
{
"question": {
"en": "Does this bike repair station have a special tool to repair your bike chain?",

View file

@ -123,5 +123,41 @@
"all_tags": {
"#": "Prints all the tags",
"render": "{all_tags()}"
},
"level": {
"question": {
"nl": "Op welke verdieping bevindt dit punt zich?",
"en": "On what level is this feature located?"
},
"render": {
"en": "Located on the {level}th floor",
"nl": "Bevindt zich op de {level}de verdieping"
},
"freeform": {
"key": "level",
"type": "float"
},
"mappings": [
{
"if": "location=underground",
"then": {
"en": "Located underground",
"nl": "Bevindt zich ondergrounds"
},
"hideInAnswer": true
},{
"if": "level=0",
"then": {
"en": "Located on the ground floor",
"nl": "Bevindt zich gelijkvloers"
}
},{
"if": "level=1",
"then": {
"en": "Located on the first floor",
"nl": "Bevindt zich op de eerste verdieping"
}
}
]
}
}