Add filter, questions and rendering for organic

This commit is contained in:
Robin van der Linde 2022-11-29 20:45:57 +01:00
parent bee8aaedbe
commit f319a0c289
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D
12 changed files with 228 additions and 136 deletions

View file

@ -206,6 +206,43 @@
"internet",
"internet-fee",
"internet-ssid",
{
"id": "organic",
"question": {
"en": "Does this shop offer organic products?"
},
"mappings": [
{
"if": "organic=yes",
"then": {
"en": "This shop offers organic products"
}
},
{
"if": "organic=only",
"then": {
"en": "This shop only offers organic products"
}
},
{
"if": "organic=no",
"then": {
"en": "This shop does not offer organic products"
}
}
],
"condition": {
"or": [
"shop=supermarket",
"shop=convenience",
"shop=farm",
"shop=greengrocer",
"shop=health_food",
"shop=clothes",
"shop=shoes"
]
}
},
"questions",
"reviews"
],
@ -269,6 +306,15 @@
{
"if": "opening_hours~*",
"then": "isOpen"
},
{
"if": {
"or": [
"organic=yes",
"organic=only"
]
},
"then": "./assets/layers/food/organic.svg"
}
],
"label": {
@ -341,6 +387,7 @@
]
},
"accepts_cash",
"accepts_cards"
"accepts_cards",
"has_organic"
]
}