[fix] error messages and minor fix in form_macros.html

This commit is contained in:
Rushabh Mehta 2016-07-11 11:49:08 +05:30
parent 3efd898501
commit 7542df5c7c

View file

@ -4,7 +4,7 @@
{{ key }}="{{ value }}" {% endfor %}{% endif %}>
{% if options -%}
{% for option in options -%}
{% set option_value = option.value if option is missing else option %}
{% set option_value = option.value if option is mapping else option %}
<option value="{{ option_value }}"
{{ "selected" if value == option_value else "" }}>{{ _(option.label if option is mapping else option) }}</option>
{%- endfor %}