Make Translation of Options in select field of web form (#2447)

This commit is contained in:
khatrijitendra 2016-12-13 13:00:30 +05:30 committed by Rushabh Mehta
parent 8f017e3a22
commit d31aa1f41c

View file

@ -129,7 +129,7 @@
{% for option in field.options.split("\n") -%}
<option value="{{ option }}"
{{ 'selected="selected"' if value(field, _doc)==option else '' }}>
{{ option }}</option>
{{ _(option) }}</option>
{%- endfor %}
</select>
{{ help(field) }}