From 213eb3fdef2f653e635be7152a3f626460808ee3 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Wed, 14 Jul 2021 14:16:00 +0200 Subject: [PATCH] Add title mappings --- assets/themes/cycle_infra/cycle_infra.json | 46 +++++++++++++++------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/assets/themes/cycle_infra/cycle_infra.json b/assets/themes/cycle_infra/cycle_infra.json index a488a9ba39..cecdfa9f5d 100644 --- a/assets/themes/cycle_infra/cycle_infra.json +++ b/assets/themes/cycle_infra/cycle_infra.json @@ -606,7 +606,23 @@ "render": { "en": "Barrier", "nl": "Barrière" - } + }, + "mappings": [ + { + "if": "barrier=bollard", + "then": { + "en": "Bollard", + "nl": "Paaltje" + } + }, + { + "if": "barrier=cycle_barrier", + "then": { + "en": "Cycling Barrier", + "nl": "Fietshekjes" + } + } + ] }, "icon": "./assets/svg/barrier.svg", "width": "5", @@ -633,20 +649,6 @@ } ] }, - { - "render": { - "en": "Maximum width: {maxwidth:physical} m", - "nl": "Maximumbreedte: {maxwidth:physical} m" - }, - "question": { - "en": "How wide is the gap left over besides the barrier?", - "nl": "Hoe breed is de ruimte naast de barrière?" - }, - "freeform": { - "key": "maxwidth:physical", - "type": "pfloat" - } - }, { "question": { "en": "What kind of bollard is this?", @@ -690,6 +692,20 @@ } } ] + }, + { + "render": { + "en": "Maximum width: {maxwidth:physical} m", + "nl": "Maximumbreedte: {maxwidth:physical} m" + }, + "question": { + "en": "How wide is the gap left over besides the barrier?", + "nl": "Hoe breed is de ruimte naast de barrière?" + }, + "freeform": { + "key": "maxwidth:physical", + "type": "pfloat" + } } ] },