Reorder questions

This commit is contained in:
Pieter Vander Vennet 2020-11-21 15:36:05 +01:00
parent 58572853f2
commit 787590228c

View file

@ -1,31 +1,8 @@
{ {
"email": {
"render": "<a href='mailto:{email}' target='_blank'>{email}</a>",
"freeform": {
"key": "email",
"type": "email"
}
},
"images": { "images": {
"render": "{image_carousel()}{image_upload()}" "render": "{image_carousel()}{image_upload()}"
}, },
"opening_hours": {
"question": {
"en": "What are the opening hours of {name}?",
"de": "Was sind die Öffnungszeiten von {name}?"
},
"render": {
"de": "<h3>Öffnungszeiten</h3>{opening_hours_table(opening_hours)}",
"en": "<h3>Opening hours</h3>{opening_hours_table(opening_hours)}"
},
"freeform": {
"key": "opening_hours",
"type": "opening_hours"
}
},
"osmlink": { "osmlink": {
"render": "<a href='https://openstreetmap.org/{id}' target='_blank'><img src='./assets/svg/osm-logo-us.svg'/></a>", "render": "<a href='https://openstreetmap.org/{id}' target='_blank'><img src='./assets/svg/osm-logo-us.svg'/></a>",
"mappings":[{ "mappings":[{
@ -34,6 +11,11 @@
}] }]
}, },
"wikipedialink": {
"render": "<a href='https://wikipedia.org/wiki/{wikipedia}' target='_blank'><img src='./assets/wikipedia.svg' alt='WP'/></a>",
"condition": "wikipedia~*"
},
"phone": { "phone": {
"question": { "question": {
"en": "What is the phone number of {name}?", "en": "What is the phone number of {name}?",
@ -46,9 +28,12 @@
} }
}, },
"wikipedialink": { "email": {
"render": "<a href='https://wikipedia.org/wiki/{wikipedia}' target='_blank'><img src='./assets/wikipedia.svg' alt='WP'/></a>", "render": "<a href='mailto:{email}' target='_blank'>{email}</a>",
"condition": "wikipedia~*" "freeform": {
"key": "email",
"type": "email"
}
}, },
"website": { "website": {
@ -64,5 +49,20 @@
"key": "website", "key": "website",
"type": "url" "type": "url"
} }
},
"opening_hours": {
"question": {
"en": "What are the opening hours of {name}?",
"de": "Was sind die Öffnungszeiten von {name}?"
},
"render": {
"de": "<h3>Öffnungszeiten</h3>{opening_hours_table(opening_hours)}",
"en": "<h3>Opening hours</h3>{opening_hours_table(opening_hours)}"
},
"freeform": {
"key": "opening_hours",
"type": "opening_hours"
}
} }
} }