Themes: add label support to questions.json; add opening hours for hospitals

This commit is contained in:
Pieter Vander Vennet 2023-05-23 00:34:26 +02:00
parent 151e648616
commit 41fdeb9cb5
4 changed files with 93 additions and 68 deletions

View file

@ -83,9 +83,23 @@
"ca": "Un pacient hospitalitzat és un pacient que roman diversos dies a la instal·lació"
}
},
"phone",
"email",
"website"
"contact",
{
"id": "oh-visitor",
"question": {
"en": "When are visitors allowed to visit?"
},
"questionHint": {
"en": "These are the regular visitor hours. Some wands have different visitor hours or might allow visitors in emergencies"
},
"freeform": {
"key": "opening_hours:visitors",
"type": "opening_hours"
},
"render": {
"en": "<h3>Opening hours for visitors</h3>Regular visitors are allowed at the following moments: {opening_hours_table(opening_hours:visitors)}<p class='subtle'>Some wands might have different opening hours. Many hospitals allow visits during emergencies too.</p>"
}
}
],
"mapRendering": [
{
@ -103,4 +117,4 @@
"width": 1
}
]
}
}

View file

@ -113,6 +113,7 @@
"render": "{minimap(18, id): width:100%; height:8rem; border-radius:2rem; overflow: hidden; pointer-events: none;}"
},
"phone": {
"labels": ["contact"],
"question": {
"en": "What is the phone number of {title()}?",
"nl": "Wat is het telefoonnummer van {title()}?",
@ -164,6 +165,7 @@
]
},
"email": {
"labels": ["contact"],
"render": "<a href='mailto:{email}' target='_blank'>{email}</a>",
"question": {
"nl": "Wat is het e-mailadres van {title()}?",
@ -206,6 +208,7 @@
}
},
"website": {
"labels": ["contact"],
"question": {
"en": "What is the website of {title()}?",
"nl": "Wat is de website van {title()}?",