forked from MapComplete/MapComplete
Themes(food): add whether a highchair is available, see #2447
This commit is contained in:
parent
30e706dfb7
commit
268328b6fe
8 changed files with 106 additions and 2 deletions
|
@ -3629,6 +3629,59 @@
|
|||
"freeform": {
|
||||
"key": "ref"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "child_highchair",
|
||||
"question": {
|
||||
"en": "Is there a high chair (also known as booster chair) for toddlers available here?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "highchair",
|
||||
"type": "nat"
|
||||
},
|
||||
"render": {
|
||||
"en": "{highchair} highchairs are available"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "highchair=no",
|
||||
"alsoShowIf": "highchair=0",
|
||||
"then": {
|
||||
"en": "No highchair available"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "highchair=yes",
|
||||
"icon": {
|
||||
"path": "./assets/layers/questions/baby_chair.svg",
|
||||
"class": "medium"
|
||||
},
|
||||
"then": {
|
||||
"en": "At least one high chair is available"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "highchair=1",
|
||||
"icon": {
|
||||
"path": "./assets/layers/questions/baby_chair.svg",
|
||||
"class": "medium"
|
||||
},
|
||||
"then": {
|
||||
"en": "One high chair is available"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": "highchair=2",
|
||||
"icon": {
|
||||
"path": "./assets/layers/questions/baby_chair.svg",
|
||||
"class": "medium"
|
||||
},
|
||||
"then": {
|
||||
"en": "Two high chairs are available"
|
||||
}
|
||||
}
|
||||
],
|
||||
"filters": ["filters.child_highchair"]
|
||||
}
|
||||
],
|
||||
"allowMove": false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue