Browse Source

culture: filter values as twig template

filter
parent
commit
b2b89b5be3
  1. 4
      culture.json

4
culture.json

@ -127,8 +127,8 @@
"name": "Type", "name": "Type",
"query": "nwr[{{ value }}]", "query": "nwr[{{ value }}]",
"type": "select", "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