forked from MapComplete/MapComplete
Reorder questions
This commit is contained in:
parent
de305ecab9
commit
a261577ef3
6 changed files with 210 additions and 1 deletions
67
assets/tagRenderings/questions.json
Normal file
67
assets/tagRenderings/questions.json
Normal file
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
"images": {
|
||||
"render": "{image_carousel()}{image_upload()}"
|
||||
},
|
||||
|
||||
"osmlink": {
|
||||
"render": "<a href='https://openstreetmap.org/{id}' target='_blank'><img src='./assets/svg/osm-logo-us.svg'/></a>",
|
||||
"mappings":[{
|
||||
"if": "id~=-",
|
||||
"then": "<span class='alert'>Uploading...</alert>"
|
||||
}]
|
||||
},
|
||||
|
||||
"wikipedialink": {
|
||||
"render": "<a href='https://wikipedia.org/wiki/{wikipedia}' target='_blank'><img src='./assets/wikipedia.svg' alt='WP'/></a>",
|
||||
"condition": "wikipedia~*"
|
||||
},
|
||||
|
||||
"phone": {
|
||||
"question": {
|
||||
"en": "What is the phone number of {name}?",
|
||||
"de": "Was ist die Telefonnummer von {name}?"
|
||||
},
|
||||
"render": "<a href='tel:{phone}'>{phone}</a>",
|
||||
"freeform": {
|
||||
"key": "phone",
|
||||
"type": "phone"
|
||||
}
|
||||
},
|
||||
|
||||
"email": {
|
||||
"render": "<a href='mailto:{email}' target='_blank'>{email}</a>",
|
||||
"freeform": {
|
||||
"key": "email",
|
||||
"type": "email"
|
||||
}
|
||||
},
|
||||
|
||||
"website": {
|
||||
"question": {
|
||||
"en": "What is the website of {name}?",
|
||||
"nl": "Wat is de website van {name}?",
|
||||
"fr": "Quel est le site internet de {name}?",
|
||||
"gl": "Cal é a páxina web de {name}?"
|
||||
},
|
||||
"render": "<a href='{website}' target='_blank'>{website}</a>",
|
||||
"freeform": {
|
||||
"key": "website",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue