Velopark: add first sync tool

This commit is contained in:
Pieter Vander Vennet 2024-01-13 05:24:56 +01:00
parent 300df3fb41
commit 250eede658
8 changed files with 500 additions and 4 deletions

View file

@ -668,6 +668,45 @@
]
}
},
{
"id": "operator_phone",
"question": {
"en": "What is the phone number of the operator of this bicycle parking?",
"nl": "Wat is het telefoonnummer van de operator van deze fietsenstalling?"
},
"questionHint": {
"en": "One might be able to call this number in case of problems, e.g. to remove unmaintained bicycles",
"nl": "Men kan dit nummer bellen om bv. fietswrakken of defecten te melden"
},
"icon": "./assets/layers/questions/phone.svg",
"freeform": {
"key": "operator:phone",
"type": "phone",
"addExtraTags": [
"phone=",
"contact:phone="
]
},
"render": "<a href='tel:{operator:phone}'>{operator:phone}</a>",
"mappings": [
{
"if": "phone~*",
"hideInAnswer": true,
"then": {
"*": "<a href='tel:{phone}'>{phone}</a>"
},
"icon": "./assets/layers/questions/phone.svg"
},
{
"if": "contact:phone~*",
"hideInAnswer": true,
"then": {
"*": "<a href='tel:{contact:phone}'>{contact:phone}</a>"
},
"icon": "./assets/layers/questions/phone.svg"
}
]
},
{
"question": {
"en": "Does this bicycle parking have spots for cargo bikes?",