Themes: add toilet questions into indoor theme

This commit is contained in:
Pieter Vander Vennet 2023-09-29 11:10:42 +02:00
parent e16051025a
commit 8f93b0d398
2 changed files with 81 additions and 11 deletions

View file

@ -96,10 +96,13 @@
"condition": "ref~*" "condition": "ref~*"
}, },
{ {
"icon": {
"class": ""
},
"mappings": [ "mappings": [
{ {
"if": "capacity~*", "if": "capacity~*",
"then": "<div class='w-fit font-bold '><img class='w-4 h-4' src='./assets/layers/indoors/room_conference.svg'/> {capacity}<div>" "then": "<div class='flex rounded-full low-interaction font-bold space-x-1 items-center mx-1'><img class='w-4 h-4' src='./assets/layers/indoors/room_conference.svg'/> {capacity}<div>"
} }
] ]
} }
@ -338,7 +341,8 @@
"then": { "then": {
"en": "These are toilets" "en": "These are toilets"
}, },
"icon": "./assets/layers/indoors/room_toilets.svg" "icon": "./assets/layers/indoors/room_toilets.svg",
"addExtraTags": ["amenity=toilets"]
}, },
{ {
"if": "room=waiting", "if": "room=waiting",
@ -375,7 +379,15 @@
"type": "pnat" "type": "pnat"
} }
}, },
"etymology.wikipedia-etymology" "etymology.wikipedia-etymology",
{
"builtin": "toilet.relevant-questions",
"override": {
"condition": {
"+and": ["amenity=toilets"]
}
}
}
], ],
"mapRendering": [ "mapRendering": [
{ {

View file

@ -174,11 +174,21 @@
"hideInAnswer": true "hideInAnswer": true
} }
], ],
"labels": [
"relevant-questions"
],
"id": "toilet-access" "id": "toilet-access"
}, },
{ {
"id": "toilets-fee", "id": "toilets-fee",
"condition": "access!=no", "labels": [
"relevant-questions"
],
"condition": {
"and": [
"access!=no"
]
},
"question": { "question": {
"en": "Are these toilets free to use?", "en": "Are these toilets free to use?",
"de": "Können diese Toiletten kostenlos benutzt werden?", "de": "Können diese Toiletten kostenlos benutzt werden?",
@ -218,6 +228,9 @@
] ]
}, },
{ {
"labels": [
"relevant-questions"
],
"question": { "question": {
"en": "How much does one have to pay for these toilets?", "en": "How much does one have to pay for these toilets?",
"de": "Wie viel muss man für die Nutzung bezahlen?", "de": "Wie viel muss man für die Nutzung bezahlen?",
@ -240,7 +253,11 @@
"da": "Gebyret er {charge}", "da": "Gebyret er {charge}",
"ca": "La taxa és {charge}" "ca": "La taxa és {charge}"
}, },
"condition": "fee=yes", "condition": {
"and": [
"fee=yes"
]
},
"freeform": { "freeform": {
"key": "charge", "key": "charge",
"type": "string", "type": "string",
@ -256,13 +273,27 @@
{ {
"builtin": "payment-options-split", "builtin": "payment-options-split",
"override": { "override": {
"condition": "fee=yes" "condition": {
"and": [
"fee=yes"
]
},
"=labels": [
"relevant-questions"
]
} }
}, },
{ {
"builtin": "opening_hours_24_7", "builtin": "opening_hours_24_7",
"override": { "override": {
"condition": "access!=no", "condition": {
"and": [
"access!=no"
]
},
"=labels": [
"relevant-questions"
],
"question": { "question": {
"en": "When are these toilets opened?", "en": "When are these toilets opened?",
"nl": "Wanneer zijn deze toiletten open?", "nl": "Wanneer zijn deze toiletten open?",
@ -275,6 +306,9 @@
}, },
{ {
"id": "toilets-wheelchair", "id": "toilets-wheelchair",
"labels": [
"relevant-questions"
],
"question": { "question": {
"en": "Is there a dedicated toilet for wheelchair users?", "en": "Is there a dedicated toilet for wheelchair users?",
"de": "Können Rollstuhlfahrer die Toilette benutzen?", "de": "Können Rollstuhlfahrer die Toilette benutzen?",
@ -327,11 +361,18 @@
{ {
"id": "wheelchair-door-width", "id": "wheelchair-door-width",
"condition": { "condition": {
"or": [ "and": [
"wheelchair=yes", {
"wheelchair=designated" "or": [
"wheelchair=yes",
"wheelchair=designated"
]
}
] ]
}, },
"labels": [
"relevant-questions"
],
"question": { "question": {
"en": "What is the width of the door to the wheelchair accessible toilet?", "en": "What is the width of the door to the wheelchair accessible toilet?",
"nl": "Hoe breed is de deur van de rolstoeltoegankelijke toilet?", "nl": "Hoe breed is de deur van de rolstoeltoegankelijke toilet?",
@ -355,6 +396,9 @@
}, },
{ {
"id": "toilets-type", "id": "toilets-type",
"labels": [
"relevant-questions"
],
"question": { "question": {
"en": "Which kind of toilets are this?", "en": "Which kind of toilets are this?",
"de": "Welche Toiletten gibt es hier?", "de": "Welche Toiletten gibt es hier?",
@ -420,6 +464,9 @@
}, },
{ {
"id": "toilets-changing-table", "id": "toilets-changing-table",
"labels": [
"relevant-questions"
],
"question": { "question": {
"en": "Is a changing table (to change diapers) available?", "en": "Is a changing table (to change diapers) available?",
"de": "Ist hier ein Wickeltisch (zum Wechseln von Babywindeln) vorhanden?", "de": "Ist hier ein Wickeltisch (zum Wechseln von Babywindeln) vorhanden?",
@ -459,6 +506,9 @@
] ]
}, },
{ {
"labels": [
"relevant-questions"
],
"question": { "question": {
"en": "Where is the changing table located?", "en": "Where is the changing table located?",
"de": "Wo befindet sich der Wickeltisch?", "de": "Wo befindet sich der Wickeltisch?",
@ -479,7 +529,9 @@
"da": "Puslebordet er placeret på {changing_table:location}", "da": "Puslebordet er placeret på {changing_table:location}",
"ca": "El cambiador està a {changing_table:location}" "ca": "El cambiador està a {changing_table:location}"
}, },
"condition": "changing_table=yes", "condition": {
"and":["changing_table=yes"]
},
"freeform": { "freeform": {
"key": "changing_table:location", "key": "changing_table:location",
"inline": true "inline": true
@ -537,6 +589,9 @@
"id": "toilet-changing_table:location" "id": "toilet-changing_table:location"
}, },
{ {
"labels": [
"relevant-questions"
],
"id": "toilet-handwashing", "id": "toilet-handwashing",
"question": { "question": {
"en": "Do these toilets have a sink to wash your hands?", "en": "Do these toilets have a sink to wash your hands?",
@ -576,6 +631,9 @@
}, },
{ {
"id": "toilet-has-paper", "id": "toilet-has-paper",
"labels": [
"relevant-questions"
],
"question": { "question": {
"en": "Does one have to bring their own toilet paper to this toilet?", "en": "Does one have to bring their own toilet paper to this toilet?",
"nl": "Moet je je eigen toiletpapier meenemen naar deze toilet?", "nl": "Moet je je eigen toiletpapier meenemen naar deze toilet?",