[fix] error messages and minor fix in form_macros.html
This commit is contained in:
parent
3efd898501
commit
7542df5c7c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 %}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue