From b2b89b5be384e933fea99890e558f9193b91e505 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at> Date: Thu, 24 Jan 2019 08:00:03 +0100 Subject: [PATCH] culture: filter values as twig template --- culture.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/culture.json b/culture.json index 219651a..39eea20 100644 --- a/culture.json +++ b/culture.json @@ -127,8 +127,8 @@ "name": "Type", "query": "nwr[{{ value }}]", "type": "select", - "values": "const", - "valueName": "{{ trans('tag' ~ value) }}" + "values": "{% for k, v in const %}<option value=\"{{ k }}\">{{ trans('tag:' ~ k) }}</option>{% endfor %}<option value=\"other\" query=\"nwr[amenity=fountain]\">{{ trans('other') }}</option>", + "valueName": "{{ trans('tag:' ~ value) }}" } } }