Browse Source

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

version-14
Rushabh Mehta 9 years ago
parent
commit
7542df5c7c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/templates/includes/form_macros.html

+ 1
- 1
frappe/templates/includes/form_macros.html View File

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


Loading…
Cancel
Save