From d8586b57a116ef582822172c34efc1f1e13062b1 Mon Sep 17 00:00:00 2001 From: Robin van der Linde Date: Mon, 7 Apr 2025 20:17:16 +0200 Subject: [PATCH] Themes: Add recycling colour question (#1194) --- assets/layers/recycling/recycling.json | 73 +++++++++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/assets/layers/recycling/recycling.json b/assets/layers/recycling/recycling.json index e126291ea..eef666fc4 100644 --- a/assets/layers/recycling/recycling.json +++ b/assets/layers/recycling/recycling.json @@ -1435,6 +1435,77 @@ "es": "Esta instalación de reciclaje puede ser usada por {access}" } }, + { + "id": "colour", + "condition": "recycling_type=container", + "question": { + "en": "What color is this recycling container?", + "nl": "Welke kleur heeft deze recyclingcontainer?" + }, + "freeform": { + "key": "colour", + "type": "color", + "placeholder": { + "en": "Colour of the container", + "nl": "Kleur van de container" + } + }, + "mappings": [ + { + "if": "colour=blue", + "then": { + "en": "This recycling container is coloured blue", + "nl": "Deze recyclingcontainer is blauw gekleurd" + } + }, + { + "if": "colour=green", + "then": { + "en": "This recycling container is coloured green", + "nl": "Deze recyclingcontainer is groen gekleurd" + } + }, + { + "if": "colour=maroon", + "then": { + "en": "This recycling container is coloured maroon", + "nl": "Deze recyclingcontainer is kastanjebruin gekleurd" + } + }, + { + "if": "colour=yellow", + "then": { + "en": "This recycling container is coloured yellow", + "nl": "Deze recyclingcontainer is geel gekleurd" + } + }, + { + "if": "colour=red", + "then": { + "en": "This recycling container is coloured red", + "nl": "Deze recyclingcontainer is rood gekleurd" + } + }, + { + "if": "colour=black", + "then": { + "en": "This recycling container is coloured black", + "nl": "Deze recyclingcontainer is zwart gekleurd" + } + }, + { + "if": "colour=white", + "then": { + "en": "This recycling container is coloured white", + "nl": "Deze recyclingcontainer is wit gekleurd" + } + } + ], + "render": { + "en": "This recycling container is {colour}", + "nl": "Deze recyclingcontainer is {colour}" + } + }, "survey_date" ], "filter": [ @@ -1795,4 +1866,4 @@ "enableRelocation": true, "enableImproveAccuracy": true } -} +} \ No newline at end of file