Fix download panel, add dog-access question

This commit is contained in:
pietervdvn 2021-09-21 02:19:31 +02:00
parent d5c1ba4cd1
commit 9e21ec1182
4 changed files with 40 additions and 2 deletions

View file

@ -107,7 +107,7 @@ export class DownloadPanel extends Toggle {
return { return {
type:"FeatureCollection", type:"FeatureCollection",
features: featureList features: resultFeatures
} }
} }

View file

@ -165,7 +165,8 @@
"email", "email",
"phone", "phone",
"payment-options", "payment-options",
"wheelchair-access" "wheelchair-access",
"dog-access"
], ],
"filter": [ "filter": [
{ {

View file

@ -182,6 +182,7 @@
"phone", "phone",
"payment-options", "payment-options",
"wheelchair-access", "wheelchair-access",
"dog-access",
{ {
"#": "Cuisine", "#": "Cuisine",
"question": { "question": {

View file

@ -137,6 +137,42 @@
} }
] ]
}, },
"dog-access": {
"question": {
"en": "Are dogs allowed in this business?",
"nl": "Zijn honden toegelaten in deze zaak?"
},
"mappings": [
{
"if": "dog=yes",
"then": {
"en": "Dogs are allowed",
"nl": "honden zijn toegelaten"
}
},
{
"if": "dog=no",
"then": {
"en": "Dogs are <b>not</b> allowed",
"nl": "honden zijn <b>niet</b> toegelaten"
}
},
{
"if": "dog=leashed",
"then": {
"en": "Dogs are allowed, but they have to be leashed",
"nl": "honden zijn <b>enkel aan de leiband</b> welkom"
}
},
{
"if": "dog=unleashed",
"then": {
"en": "Dogs are allowed and can run around freely",
"nl": "honden zijn welkom en mogen vrij rondlopen"
}
}
]
},
"description": { "description": {
"question": { "question": {
"nl": "Zijn er nog andere relevante zaken die je niet in de bovenstaande vragen kwijt kon? Vul ze hier in.<br/><span style='font-size: small'>Herhaal geen antwoorden die je reeds gaf</span>", "nl": "Zijn er nog andere relevante zaken die je niet in de bovenstaande vragen kwijt kon? Vul ze hier in.<br/><span style='font-size: small'>Herhaal geen antwoorden die je reeds gaf</span>",