Browse Source

culture: filter values as twig template

pedestrian
parent
commit
5241e0638c
  1. 4
      culture.json

4
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) }}"
}
}
}
Loading…
Cancel
Save