blob: 6258ca773d6d655c6e93fcc805a140a8471ad62b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<select name="{{ select_name }}"{% if id is not empty %} id="{{ id }}"{% endif -%}
{%- if class is not empty %} class="{{ class }}"{% endif %}>
{% if placeholder is not empty %}
<option value="" disabled="disabled"
{%- if not selected %} selected="selected"{% endif %}>{{ placeholder }}</option>
{% endif %}
{% for option in result_options %}
<option value="{{ option['value'] }}"
{{- option['selected'] ? ' selected="selected"' }}>{{ option['label'] }}</option>
{% endfor %}
</select>
|