mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-23 22:52:22 +00:00
12 lines
502 B
Twig
12 lines
502 B
Twig
<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>
|